cgv
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::type::func::transfer_const
Definition:
transfer_const.h:9
cgv
the cgv namespace
Definition:
vr_calib.cxx:9
projects
git
cgv
cgv
type
func
transfer_const.h
Generated by
1.8.18