debugprint overloads
Synopses
Declared in <bsls_bsltestutil.h>
Print to the console the string "true" if the specified v is true, and the string "false" otherwise.
void
debugprint(bool v);
Print to the console the specified character, v, enclosed by single‐quote characters (').
void
debugprint(char v);
See the float overload above.
void
debugprint(double v);
Print to the console the specified value, v, formatted as a string enclosed by single‐quote characters (').
void
debugprint(float v);
See the signed char overload above.
void
debugprint(int v);
See the signed char overload above.
void
debugprint(long v);
See the float overload above.
void
debugprint(long double v);
See the signed char overload above.
void
debugprint(long long v);
See the signed char overload above.
void
debugprint(short v);
Print to the console the specified integer value, v, formatted as a string.
void
debugprint(signed char v);
See the signed char overload above.
void
debugprint(unsigned char v);
See the signed char overload above.
void
debugprint(unsigned int v);
See the signed char overload above.
void
debugprint(unsigned long v);
See the signed char overload above.
void
debugprint(unsigned long long v);
See the signed char overload above.
void
debugprint(unsigned short v);
See the const char * overload above.
void
debugprint(char* v);
Print to the console the specified memory address, v, formatted as a hexadecimal integer.
void
debugprint(void* v);
See the const char * overload above.
void
debugprint(char volatile* v);
See the void * overload above.
void
debugprint(void volatile* v);
Print to the console the specified string, v, enclosed by quote characters ("), unless v is null, in which case print (null) (without quotes of any kind).
void
debugprint(char const* v);
See the void * overload above.
void
debugprint(void const* v);
See the const char * overload above.
void
debugprint(char const volatile* v);
See the void * overload above.
void
debugprint(void const volatile* v);
Print to the console the specified function pointer, v, formatted as a hexadecimal integer. On some platforms (notably Windows), a function pointer is treated differently from an object pointer, and the compiler will not be able to determine which void * overload of debugprint should be used for a function pointer. Therefore an overload of debugprint is provided specifically for function pointers. Because the type signature of a function pointer varies with its return type as well as with its argument list, a template function is used, to provide matches for all return types.
template<class RESULT>
void
debugprint(RESULT(* v)());
Created with MrDocs