Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MCTypeTraits Struct Template Reference

Template for type traits. More...

#include <mcllib/MCTypeTraits.h>

List of all members.

Public Types

enum  { destruct_opt = 0, copy_opt = 0, assign_opt = 0, is_pod = 0 }
typedef const underlying_typecopy_param_type
 The type to use for passing parameters into a constructor or method.
typedef const underlying_typecopy_return_type
 The type to use for returning member data from a method.
typedef T underlying_type
 Type described by the type trait.

Detailed Description

template<typename T>
struct mcllib::MCTypeTraits< T >

Template for type traits.

Type traits allow for optimizations of various template algorithms based on informtion about the types used in the template. This default type traits is suitable for general classes. Other type traits are defined specifically for plain types.

Member Enumeration Documentation

anonymous enum

Enumeration values:
destruct_opt  If 1 then the destructor can be optimized away (not called).
copy_opt  If 1 then the constructor can be optimized away (not called).
assign_opt  If 1 then assignment can be optimized away (used memcpy).
is_pod  If 1 then the type is a plain type.

Generated on Wed Jan 12 19:05:50 2005 for MCLLIB by  doxygen