BloombergLP::bdlat_TypeName::className

Return a null-terminated string containing the exported name for the specified TYPE, or a 0 pointer if TYPE does not export a name. A type exports a name by overloading the function bdlat_TypeName_className(const TYPE&) in TYPE's namespace. The default implementation of bdlat_TypeName_className will automatically return the CLASS_NAME value for types that have the bdlat_TypeTraitBasicChoice, bdlat_TypeTraitBasicSequence, bdlat_TypeTraitBasicCustomizedType, or bdlat_TypeTraitBasicEnumeration trait (i.e., types generated using bas_codegen.pl).

Synopsis

Declared in <bdlat_typename.h>

template<class TYPE>
static
char const*
className(TYPE const& object);