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

Print a function pointer as a hexadecimal address&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class RESULT&gt;
void
debugprint(RESULT(* v)());
----

== Description

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;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| function pointer to print
|===


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