[#BloombergLP-bsls-debugprint-0d3]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::debugprint
:relfileprefix: ../../
:mrdocs:

`debugprint` overloads

== Synopses

Declared in `&lt;bsls&lowbar;bsltestutil&period;h&gt;`

Print to the console the string &quot;true&quot; if the specified `v` is true, and the string &quot;false&quot; otherwise&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-01.adoc[debugprint](bool v);
----

[.small]#xref:BloombergLP/bsls/debugprint-01.adoc[_» more&period;&period;&period;_]#

Print to the console the specified character, `v`, enclosed by single&hyphen;quote characters (&apos;)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0e.adoc[debugprint](char v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0e.adoc[_» more&period;&period;&period;_]#

See the `float` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0c64.adoc[debugprint](double v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0c64.adoc[_» more&period;&period;&period;_]#

Print to the console the specified value, `v`, formatted as a string enclosed by single&hyphen;quote characters (&apos;)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-050.adoc[debugprint](float v);
----

[.small]#xref:BloombergLP/bsls/debugprint-050.adoc[_» more&period;&period;&period;_]#

See the `signed char` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0c5.adoc[debugprint](int v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0c5.adoc[_» more&period;&period;&period;_]#

See the `signed char` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0c0.adoc[debugprint](long v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0c0.adoc[_» more&period;&period;&period;_]#

See the `float` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0acf.adoc[debugprint](long double v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0acf.adoc[_» more&period;&period;&period;_]#

See the `signed char` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0c6c.adoc[debugprint](long long v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0c6c.adoc[_» more&period;&period;&period;_]#

See the `signed char` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0fc.adoc[debugprint](short v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0fc.adoc[_» more&period;&period;&period;_]#

Print to the console the specified integer value, `v`, formatted as a string&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0c2.adoc[debugprint](signed char v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0c2.adoc[_» more&period;&period;&period;_]#

See the `signed char` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0b1.adoc[debugprint](unsigned char v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0b1.adoc[_» more&period;&period;&period;_]#

See the `signed char` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-06.adoc[debugprint](unsigned int v);
----

[.small]#xref:BloombergLP/bsls/debugprint-06.adoc[_» more&period;&period;&period;_]#

See the `signed char` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0b6.adoc[debugprint](unsigned long v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0b6.adoc[_» more&period;&period;&period;_]#

See the `signed char` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-079.adoc[debugprint](unsigned long long v);
----

[.small]#xref:BloombergLP/bsls/debugprint-079.adoc[_» more&period;&period;&period;_]#

See the `signed char` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0da.adoc[debugprint](unsigned short v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0da.adoc[_» more&period;&period;&period;_]#

See the `const char &ast;` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-055.adoc[debugprint](char* v);
----

[.small]#xref:BloombergLP/bsls/debugprint-055.adoc[_» more&period;&period;&period;_]#

Print to the console the specified memory address, `v`, formatted as a hexadecimal integer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0f2.adoc[debugprint](void* v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0f2.adoc[_» more&period;&period;&period;_]#

See the `const char &ast;` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-03.adoc[debugprint](char volatile* v);
----

[.small]#xref:BloombergLP/bsls/debugprint-03.adoc[_» more&period;&period;&period;_]#

See the `void &ast;` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0ce.adoc[debugprint](void volatile* v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0ce.adoc[_» more&period;&period;&period;_]#

Print to the console the specified string, `v`, enclosed by quote characters (&quot;), unless `v` is null, in which case print `(null)` (without quotes of any kind)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0ac0.adoc[debugprint](char const* v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0ac0.adoc[_» more&period;&period;&period;_]#

See the `void &ast;` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-0f6.adoc[debugprint](void const* v);
----

[.small]#xref:BloombergLP/bsls/debugprint-0f6.adoc[_» more&period;&period;&period;_]#

See the `const char &ast;` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-076.adoc[debugprint](char const volatile* v);
----

[.small]#xref:BloombergLP/bsls/debugprint-076.adoc[_» more&period;&period;&period;_]#

See the `void &ast;` overload above&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bsls/debugprint-02.adoc[debugprint](void const volatile* v);
----

[.small]#xref:BloombergLP/bsls/debugprint-02.adoc[_» more&period;&period;&period;_]#

Print to the console the specified function pointer, `v`, formatted as a hexadecimal integer&period; 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 &ast;` overload of `debugprint` should be used for a function pointer&period; Therefore an overload of `debugprint` is provided specifically for function pointers&period; 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&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class RESULT&gt;
void
xref:BloombergLP/bsls/debugprint-070.adoc[debugprint](RESULT(* v)());
----

[.small]#xref:BloombergLP/bsls/debugprint-070.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
