BloombergLP::bdlb::Print::printPtr

Print a pointer value to a stream in a standard format.

Synopsis

Declared in <bdlb_print.h>

static
void
printPtr(
    std::ostream& stream,
    void const* value);

Description

Print to the specified stream the specified pointer value in a standard format. The output is in hexadecimal format with a maximum length of 2 * sizeof(void *). The output does not have leading zeros and is not preceded by 0x. The hexadecimal digits (a to f, inclusive) are expressed in lower case.

Parameters

NameDescription
streamthe output stream
valuethe pointer value to print