CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of template metaprogramming
C++
#include "for_each.h"
#include <iostream>
#include <tuple>
 
// ------- Fibonacii number generator ---------
template<int N>
struct Fib
{
    enum { value = Fib<N-1>::value + Fib<N-2>::value };
};
by sigidagi   June 18, 2011 @ 2:27am
176 Views
no comments
 
C++
#include "for_each.h"
#include <iostream>
#include <string>
#include <tuple>
 
using namespace std;
 
struct Functor 
{
    template<typename T>
by sigidagi   June 17, 2011 @ 1:12pm
125 Views
1 comments
 
C++
// =====================================================================================
// 
//       Filename:  for_each.h
// 
// =====================================================================================
 
 
#ifndef  FOR_EACH_INC
#define  FOR_EACH_INC
by sigidagi   June 17, 2011 @ 12:31pm
145 Views
1 comments
 
C++
// =====================================================================================
// 
//       Filename:  indexes.h
//
// =====================================================================================
 
 
#ifndef  INDEXES_INC
#define  INDEXES_INC
by sigidagi   June 17, 2011 @ 12:08pm
152 Views
2 comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate