MEL
Microthread & Execution library
_If.h
1 #pragma once
2 
10 namespace mel
11 {
12  namespace mpl
13  {
14  template <bool Cond,class T,class U>
15  struct _if
16  {
17  typedef T Result;
18  };
19  template <class T,class U>
20  struct _if<false,T,U>
21  {
22  typedef U Result;
23  };
24  template <bool Cond,int t,int u> struct _ifInt
25  {
26  enum {result = t};
27  };
28  template <int t,int u> struct _ifInt<false,t,u>
29  {
30  enum {result = u};
31  };
32 
33  }
34 }
Definition: Callback_Impl.h:11
Definition: _If.h:16
Definition: _If.h:25