[#BloombergLP-bdljsn-Json_VisitUtil-invokeVisitor-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json_VisitUtil.adoc[Json_VisitUtil]::invokeVisitor :relfileprefix: ../../../ :mrdocs: Invoke `visitor` with `argument` and return the result. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RETURN_TYPE, class VISITOR, class ARGUMENT> static RETURN_TYPE invokeVisitor( VISITOR* visitor, ARGUMENT const& argument); ---- == Description Invoke the specified `visitor` (callable object) with the specified `argument` and return the computed value of (template parameter) the `RETURN_TYPE`. Note that in typical use, `argument` has the current value and type of a `Json` object. == 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]#