[#BloombergLP-bslfmt-basic_format_arg-05-handle] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslfmt.adoc[bslfmt]::xref:BloombergLP/bslfmt/basic_format_arg-05.adoc[basic_format_arg<basic_format_context<t_OUT, t_CHAR>>]::handle :relfileprefix: ../../../ :mrdocs: This class provides a type‐erased wrapper which holds a pointer to a user‐defined type and permits its formatting using the appropriate bsl::formatter type. == Synopsis Declared in `<bslfmt_format_arg.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class handle; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslfmt/basic_format_arg-05/handle/format.adoc[`format`] | Format the contained value using a formatter for the template parameter `t_TYPE` used in the construction of this object. The constructed formatter will parse the specification in the specified `pc` context and write the output to the specified `fc` context. |=== == Friends [cols="1,4"] |=== | Name| Description | `xref:BloombergLP/bslfmt/basic_format_arg-05.adoc[BloombergLP::bslfmt::basic_format_arg<basic_format_context<t_OUT, t_CHAR>>]` | This class provides an STL‐compliant `basic_format_arg` which holds (by value for scalar and pointer types, by reference for user‐defined types). These types should not be constructed directly by the user. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#