Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
meta.h
1 /*
2  * $Id$
3  * Copyright (c) 2006, IRIT-UPS.
4  *
5  * Meta-programming definitions.
6  */
7 #ifndef ELM_META_H
8 #define ELM_META_H
9 
10 
11 namespace elm {
12 
13 // Value pattern
14 template <int x> struct _n { enum { _ = x }; };
15 
16 
17 // If pattern
18 template <bool c, class T, class E> struct _if { typedef T _; };
19 template <class T, class E> struct _if<false, T, E> { typedef E _; };
20 
21 } // elm
22 
23 #endif // ELM_META_H
24 
Definition: meta.h:14
Definition: meta.h:18
E _
Definition: meta.h:19
T _
Definition: meta.h:18
Definition: meta.h:14