[#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. == Synopses Declared in `<bdljsn_json.h>` Invoke `visitor` on the value held by this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VISITOR> decltype(auto) xref:BloombergLP/bdljsn/Json/visit-01.adoc[visit](VISITOR&& visitor); ---- [.small]#xref:BloombergLP/bdljsn/Json/visit-01.adoc[_» more..._]# Invoke `visitor` on the value held by this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class VISITOR> decltype(auto) xref:BloombergLP/bdljsn/Json/visit-0c.adoc[visit](VISITOR&& visitor) const; ---- [.small]#xref:BloombergLP/bdljsn/Json/visit-0c.adoc[_» more..._]# Invoke `visitor` on the value held by this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RETURN_TYPE, class VISITOR> RETURN_TYPE xref:BloombergLP/bdljsn/Json/visit-02.adoc[visit](VISITOR&& visitor); ---- [.small]#xref:BloombergLP/bdljsn/Json/visit-02.adoc[_» more..._]# Invoke `visitor` on the value held by this object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class RETURN_TYPE, class VISITOR> RETURN_TYPE xref:BloombergLP/bdljsn/Json/visit-06.adoc[visit](VISITOR&& visitor) const; ---- [.small]#xref:BloombergLP/bdljsn/Json/visit-06.adoc[_» more..._]# == Return Value * result (having a deduced type) of invoking the specified `visitor` (callable) object on this `Json` object * result (having `RETURN_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]#