cgv
promote_const.h
1 #pragma once
2 
3 #include <cgv/type/cond/is_const.h>
4 #include <cgv/type/func/drop_const.h>
5 #include <cgv/type/func/make_const.h>
6 #include <cgv/type/ctrl/if_.h>
7 
8 namespace cgv {
9  namespace type {
10  namespace func {
12  template <typename T1, typename T2>
13  struct promote_const : public
14  ctrl::if_<cond::is_const<T1>::value,
15  typename make_const<T2>::type,
16  typename drop_const<T2>::type> {};
17  }
18  }
19 }
cgv::type::ctrl::if_
the if traits selects a type from a given condition type which should be cond::true_type or cond::fal...
Definition: if_.h:8
cgv::type::func::promote_const
Definition: promote_const.h:16
cgv
the cgv namespace
Definition: vr_calib.cxx:9