Retrieve the base component of a type.

Retrieve the base component of a type. More...

Classes

struct  Dv::basetype< T >
 Retrieve the base component of a type. More...
struct  Dv::basetype< T & >
 Retrieve the base component of a type. More...
struct  Dv::basetype< const T & >
 Retrieve the base component of a type. More...
struct  Dv::basetype< const T >
 Retrieve the base component of a type. More...

Detailed Description

Retrieve the base component of a type.

A class template with specialisation that support th retrieval of the 'base type' of a type, i.e. the type with the qualifiers 'const' '&' removed.

E.g all the types below are 'int'

 basetype<int>::base 
 basetype<const int>::base 
 basetype<int&>::base 
 basetype<const int&>::base 
Warning:
Could be extended to also remove '*'.

dvutil-1.0.10 [ 5 December, 2009]