Template Struct strip_const

Struct Documentation

template<typename T>
struct strip_const

Remove the ‘const’ qualifier if present

assert(typeid(strip_const<int>::type)==typeid(int));
assert(typeid(strip_const<const int>::type)==typeid(int));

Public Types

typedef T type