BloombergLP::bsls::NameOf_Base::initBuffer

Initialize buffer with the type name extracted from functionName.

Synopsis

Declared in <bsls_nameof.h>

static
char const*
initBuffer(
    char* buffer,
    char const* functionName);

Description

Initialize the specified buffer with the type name contained in the specified functionName, where functionName is the function name of the NameOf constructor. Return either a pointer to buffer, or if buffer couldn't be properly initialized, functionName.

Return Value

buffer on success, or functionName if initialization fails

Parameters

NameDescription
bufferdestination buffer for the extracted type name
functionNamefunction signature string containing the type name