[#BloombergLP-bslfmt-basic_format_arg-05-visit] = 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>>]::visit :relfileprefix: ../../../ :mrdocs: Invoke `visitor` on the value contained by this object. == Synopsis Declared in `<bslfmt_format_arg.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_VISITOR> decltype(auto) visit(t_VISITOR&& visitor); ---- == Description Invoke the specified `visitor` functor on the value contained by this object, providing that functor non‐modifiable access to that value. `visitor` must be a `variant`‐style functor that is able to visit all supported types listed in the {DESCRIPTION}. == Return Value result of invoking `visitor` on the contained value == Parameters [cols="1,4"] |=== | Name| Description | *visitor* | functor invoked with the contained value |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#