cgv
Loading...
Searching...
No Matches
transfer_const.h
1#pragma once
2
3namespace cgv {
4 namespace type {
5 namespace func {
7 template <typename T, typename S>
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}
the cgv namespace
Definition print.h:11
return const S if T is const and S otherwise