cgv
Loading...
Searching...
No Matches
make_const.h
1#pragma once
2
3#include <cgv/type/func/drop_const.h>
4
5namespace cgv {
6 namespace type {
7 namespace func {
8 namespace MakeConst {
9 template <typename T>
11 {
12 typedef const T type;
13 };
14 template <typename T>
15 struct make_const_impl<T&>
16 {
17 typedef const T& type;
18 };
19 }
21 template <typename T>
22 struct make_const : public MakeConst::make_const_impl<typename drop_const<T>::type> {};
23 }
24 }
25}
the cgv namespace
Definition print.h:11
the drop const traits defines a type without const modifier
Definition make_const.h:22