See isConstType<T>::value for a const expression telling you whether or not T is a "const" type or not. More...
#include <classTraits.h>
Public Types | |
enum | constants { value = 0 } |
typedef T | type |
typedef false_value_type | valueType |
See isConstType<T>::value for a const expression telling you whether or not T is a "const" type or not.
The following templates, removeConst<T>, removeVolatile<T>, and removeCV<T> let you define a typedef based on some specified type BUT not having the const or volatile attributes. Use it like this:
template<class T> void function(T t) { typedef typename removeCV<T>::type PlainOldT; // use PlainOldT instead of T to eliminate annoying and unnecessary // template specializations of T which have const or volatile attributes. }
Definition at line 231 of file classTraits.h.
typedef T type |
Definition at line 255 of file classTraits.h.
typedef false_value_type valueType |
Definition at line 257 of file classTraits.h.
enum constants |
Definition at line 259 of file classTraits.h.