BDE 4.14.0 Production release
|
Macros | |
#define | bslmf_TypeRep bslmf::TypeRep |
This alias is defined for backward compatibility. | |
Typedefs | |
typedef bslmf::MatchAnyType | bslmf_AnyType |
This alias is defined for backward compatibility. | |
Provide a generic type to which any type can be converted.
t_TYPE
bslmf::MatchAnyType
is a type to which any type can be implicitly converted. This is useful for creating an overloaded function that is a catch-all for all types not explicitly provided for in other overloaded functions with the same name.
bslmf::TypeRep
allows one to create a reference to a type. In complex template programming, one is often dealing with unknown types, about the constructors of which one knows nothing. One often needs an object of the given type, but since nothing is known about the constructors, one can't just construct and object of the type. bslmf::TypeRep
allows one to create a reference to the type. Note that the rep
function in bslmf::TypeRep
is not implemented, it must never be called at run time.
This section illustrates intended use of this component.
#define bslmf_TypeRep bslmf::TypeRep |
typedef bslmf::MatchAnyType bslmf_AnyType |