Type Traits and Information

Detailed Description

Two types are useful to get type information: Pt::TypeTraits and Pt::TypeInfo. TypeTraits are used for generic programming, for example to deduce the pointer type in templated code, or to branch differently for const and non-const types. The TypeInfo class is a wrapper for std::type_info, which makes it easier to store and compare type information. The std::type_info is normally not copyable and comparable. Pt::SourceInfo is used to store information about a location in the source code.

Classes

struct  TypeTraits< T >
 Traits for type properties. More...
 
class  SourceInfo
 Source code info class. More...
 
class  TypeInfo
 Extended API for std::type_info. More...