TypeTraits< T > Struct Template Reference

The generic TypeTraits implementation. More...

#include <Util/TypeTraits.H>

List of all members.

Public Types

enum  { isTrivial = 0 }
 

Whether the type is trivial (either builtin or a plain-old-data struct).

More...

Detailed Description

template<class T>
struct TypeTraits< T >

The generic TypeTraits implementation.

This template struct can be specialized or partially specialized for other user-defined types. In general, the approach should be that the generic version makes the most conservative specifications, and that specializations can make more aggressive specifications. That way, if we forget to specialize for a given type, we might risk missing some optimization, but won't risk breaking the program.

Definition at line 51 of file TypeTraits.H.


Member Enumeration Documentation

template<class T >
anonymous enum

Whether the type is trivial (either builtin or a plain-old-data struct).

This will be used to determine whether objects of the type can safely be handled as raw memory; that is, whether they can be initialized with memset(), copied with memcpy(), and don't have to have their destructors run, etc. Any of the builtin types meet these criteria, as well as any user-defined plain-old-data (POD) type. A POD type must have members that are all either builtin types or other POD types, and must not have a user-defined destqructor, copy constructor, or assignment operator. It can have user-defined constructors.

Definition at line 63 of file TypeTraits.H.


The documentation for this struct was generated from the following file:
Generated on Sun May 8 08:43:50 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3