cgv
Loading...
Searching...
No Matches
transfer_const.h
1
#pragma once
2
3
namespace
cgv
{
4
namespace
type {
5
namespace
func {
7
template
<
typename
T,
typename
S>
8
struct
transfer_const
9
{
10
typedef
S type;
11
};
12
// specialize for const types
13
template
<
typename
T,
typename
S>
14
struct
transfer_const
<const T, S>
15
{
16
typedef
const
S type;
17
};
18
// specialize for const pointer types
19
template
<
typename
T,
typename
S>
20
struct
transfer_const
<const T*, S*>
21
{
22
typedef
const
S* type;
23
};
24
}
25
}
26
}
cgv
the cgv namespace
Definition
print.h:11
cgv::type::func::transfer_const
return const S if T is const and S otherwise
Definition
transfer_const.h:9
cgv
type
func
transfer_const.h
Generated by
1.9.8