Loading [MathJax]/extensions/tex2jax.js
NiHu
2.0
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
Functions
Typedefs
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
c
d
f
i
m
n
p
q
r
s
t
v
x
Typedefs
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
t
v
w
x
y
Enumerator
d
i
j
k
l
m
n
o
p
q
r
s
t
Files
File List
File Members
All
Functions
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
type2tag.hpp
Go to the documentation of this file.
1
6
#ifndef NIHU_TYPE2TAG_HPP_INCLUDED
7
#define NIHU_TYPE2TAG_HPP_INCLUDED
8
9
namespace
NiHu
10
{
11
16
template
<
class
Type>
17
struct
type2tag
18
{
19
// self-returning metafunction
20
typedef
type2tag
type
;
21
};
22
27
template
<
class
Tag>
28
struct
tag2type
;
29
30
template
<
class
Type>
31
struct
tag2type
<
type2tag
<Type> >
32
{
33
typedef
Type type;
34
};
35
36
}
// end of namespace NiHu
37
38
#endif
/* NIHU_TYPE2TAG_HPP_INCLUDED */
NiHu::tag2type
Metafunction recovering the type from a tag.
Definition:
type2tag.hpp:28
NiHu::type2tag
Metafunction assigning a tag to a type.
Definition:
type2tag.hpp:17
src
util
type2tag.hpp
Generated on Sun Apr 6 2025 01:00:17 for NiHu by
1.8.18