[#BloombergLP-bdljsn-Json-visit-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::visit
:relfileprefix: ../../../
:mrdocs:

Invoke `visitor` on the value held by this object&period;

== Synopses

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

Invoke `visitor` on the value held by this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class VISITOR&gt;
decltype(auto)
xref:BloombergLP/bdljsn/Json/visit-01.adoc[visit](VISITOR&& visitor);
----

[.small]#xref:BloombergLP/bdljsn/Json/visit-01.adoc[_» more&period;&period;&period;_]#

Invoke `visitor` on the value held by this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class VISITOR&gt;
decltype(auto)
xref:BloombergLP/bdljsn/Json/visit-0c.adoc[visit](VISITOR&& visitor) const;
----

[.small]#xref:BloombergLP/bdljsn/Json/visit-0c.adoc[_» more&period;&period;&period;_]#

Invoke `visitor` on the value held by this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RETURN&lowbar;TYPE,
    class VISITOR&gt;
RETURN&lowbar;TYPE
xref:BloombergLP/bdljsn/Json/visit-02.adoc[visit](VISITOR&& visitor);
----

[.small]#xref:BloombergLP/bdljsn/Json/visit-02.adoc[_» more&period;&period;&period;_]#

Invoke `visitor` on the value held by this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class RETURN&lowbar;TYPE,
    class VISITOR&gt;
RETURN&lowbar;TYPE
xref:BloombergLP/bdljsn/Json/visit-06.adoc[visit](VISITOR&& visitor) const;
----

[.small]#xref:BloombergLP/bdljsn/Json/visit-06.adoc[_» more&period;&period;&period;_]#

== Return Value

* result (having a deduced type) of invoking the specified `visitor` (callable) object on this `Json` object
* result (having `RETURN&lowbar;TYPE`) of invoking the specified `visitor` (callable) object on this `Json` object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *visitor*
| callable invoked with the held value
|===


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