cgv
Loading...
Searching...
No Matches
drop_const.h
1#pragma once
2
3namespace cgv {
4 namespace type {
5 namespace func {
6
8template <typename T>
10{
12 typedef T type;
13};
15template <typename T>
16struct drop_const<const T>
17{
19 typedef T type;
20};
22template <typename T>
23struct drop_const<T&>
24{
26 typedef typename drop_const<T>::type& type;
27};
28
29 }
30 }
31}
the cgv namespace
Definition print.h:11
drop_const< T >::type & type
define type without const
Definition drop_const.h:26
T type
define type without const
Definition drop_const.h:19
the drop const template defines a type without const modifier
Definition drop_const.h:10
T type
define value type
Definition drop_const.h:12