FBB::TypeTrait is a traits class. It does not define any member
functions or data members, but only types. It can be used to determine the
basic type and other characteristics of (const) plain, (const) pointer or
(const) reference types. It is used, e.g., by the FBB::FnWrap* family of
template classes and was designed after Alexandrescu's (2001) TypeTraits
template class.
NAMESPACE
FBB
All constructors, members, operators and manipulators, mentioned in this
man-page, are defined in the namespace FBB.
INHERITS FROM
-
TYPE
Plain: the plain type of any const or non-const plain, pointer or
reference type.
BOOL VALUES
isPointer: true if the template type argument represents a
pointer type, false otherwise.
isConst: true if the template type argument represents a
const type, false otherwise.
isRef: true if the template type argument represents a
reference type, false otherwise.
EXAMPLE
The following example shows a fragment of the code used in the
FBB::FnWrap1 class determining the basic type of its Type template
parameter: