Developer documentation

texp_strip_qualifiers.hpp
Go to the documentation of this file.
1 #ifndef realroot_BASE_TYPE_STRIPQUALIFIERS_H
2 #define realroot_BASE_TYPE_STRIPQUALIFIERS_H
3 
4 namespace mmx {
5 
6 namespace texp
7 {
9  template <class X> struct ptr { typedef X * T; };
10  template <class X> struct ptr<X*> { typedef X * T; };
11  template <class X> struct ptr<X* const> { typedef X * const T; };
13  template <class X> struct uptr { typedef X T; };
14  template <class X> struct uptr<X*> { typedef X T; };
16  template <class X> struct ref { typedef X & T; };
17  template <class X> struct ref<X&> { typedef X & T; };
19  template <class X> struct uref { typedef X T; };
20  template <class X> struct uref<X&> { typedef X T; };
22  template <class X> struct cst { typedef const X T; };
23  template <class X> struct cst<const X> { typedef const X T; };
25  template <class X> struct ucst { typedef X T; };
26  template <class X> struct ucst<const X> { typedef X T; };
28  template <class X> struct ucstref { typedef typename uref< typename ucst<X>::T >::T T; };
29 };
30 
31 }// end namespace mmx
32 
33 #endif
const X T
Definition: texp_strip_qualifiers.hpp:22
TMPL X
Definition: polynomial_operators.hpp:148
X & T
Definition: texp_strip_qualifiers.hpp:17
X T
Definition: texp_strip_qualifiers.hpp:26
return T = const Y from X = Y or X = const Y
Definition: texp_strip_qualifiers.hpp:22
return T = Y from X = Y or X = Y &
Definition: texp_strip_qualifiers.hpp:19
X T
Definition: texp_strip_qualifiers.hpp:13
return T = Y & from X = Y or X = Y &
Definition: texp_strip_qualifiers.hpp:16
return T = Y from X = Y or X = const Y
Definition: texp_strip_qualifiers.hpp:25
X T
Definition: texp_strip_qualifiers.hpp:20
X * T
Definition: texp_strip_qualifiers.hpp:9
return T = Y * from X = Y or X = Y *
Definition: texp_strip_qualifiers.hpp:9
X * T
Definition: texp_strip_qualifiers.hpp:10
uref< typename ucst< X >::T >::T T
Definition: texp_strip_qualifiers.hpp:28
const X T
Definition: texp_strip_qualifiers.hpp:23
X *const T
Definition: texp_strip_qualifiers.hpp:11
X & T
Definition: texp_strip_qualifiers.hpp:16
return T = Y from X = const Y, Y, Y &, const Y &
Definition: texp_strip_qualifiers.hpp:28
X T
Definition: texp_strip_qualifiers.hpp:25
Definition: array.hpp:12
X T
Definition: texp_strip_qualifiers.hpp:14
return T = Y from X = Y or X = Y *
Definition: texp_strip_qualifiers.hpp:13
X T
Definition: texp_strip_qualifiers.hpp:19
Home