isConstType< T > Struct Template Reference

See isConstType<T>::value for a const expression telling you whether or not T is a "const" type or not. More...

#include <classTraits.h>

List of all members.

Public Types

enum  constants { value = 0 }
typedef T type
typedef false_value_type valueType

Detailed Description

template<class T>
struct cxxtls::isConstType< T >

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.
      }
  
    
See also:
classTraits_documentation

Definition at line 231 of file classTraits.h.


Member Typedef Documentation

typedef T type

Definition at line 255 of file classTraits.h.

Definition at line 257 of file classTraits.h.


Member Enumeration Documentation

enum constants
Enumerator:
value 

Definition at line 259 of file classTraits.h.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:55:54 2012 for CXXUtilities by  doxygen 1.6.3