aimstil
5.0.5
meta.h
Go to the documentation of this file.
1
#ifndef TIL_META_H
2
#define TIL_META_H
3
5
6
namespace
til
{
namespace
meta
7
{
8
10
template
<
int
i >
struct
int_type
11
{
12
enum
{
value
= i };
13
};
14
15
template
<
typename
T1,
typename
T2 >
struct
add_type
;
16
18
template
<
int
i,
int
j>
19
struct
add_type
<
int_type
<i>,
int_type
<j> >
20
{
21
typedef
int_type<i+j>
type
;
22
};
23
24
25
26
}}
// namespace til::meta
27
28
#endif
29
til::meta::add_type< int_type< i >, int_type< j > >::type
int_type< i+j > type
Definition:
meta.h:21
til
Belongs to package Box Do not include directly, include til/Box.h instead.
Definition:
Accumulator.h:10
til::meta::int_type::value
Definition:
meta.h:12
til::meta::add_type
Definition:
meta.h:15
til::meta::int_type
Type representing an integer.
Definition:
meta.h:10
til
meta.h
Generated by
1.8.13