Return a null‐terminated string containing the name of TYPE.

Synopsis

Declared in <bdlat_typename.h>

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

Description

Return a null‐terminated string containing the name of the specified TYPE. If TYPE is a fundamental type, string, date, time, or datetime, then return a canonical representation of the type's name. Otherwise, if className applied to the specified object returns a non‐null value, then return that value. Otherwise, return typeid(TYPE).name(). Note that the returned name refers to the static TYPE, not to the dynamic type of object.

Return Value

null‐terminated string containing the name of TYPE

Parameters

Name

Description

object

object whose static type name is returned

Created with MrDocs