[#BloombergLP-bdljsn-Json_VisitUtil-invokeVisitor-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json_VisitUtil.adoc[Json&lowbar;VisitUtil]::invokeVisitor
:relfileprefix: ../../../
:mrdocs:

Same as the related overload above for `invokeVisitor`&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;json&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VISITOR,
    class ARGUMENT&gt;
static
decltype(auto)
invokeVisitor(
    xref:BloombergLP/bslmf/MovableRef_Deduced.adoc[BloombergLP::bslmf::MovableRef&lowbar;Deduced&lt;VISITOR&gt;] visitor,
    ARGUMENT const& argument);
----

== Return Value

the value returned by invoking `visitor` with `argument`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *visitor*
| callable to invoke
| *argument*
| value passed to `visitor`
|===


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