BloombergLP::bdljsn::Json::visit

Invoke visitor on the value held by this object.

Synopses

Declared in <bdljsn_json.h>

Invoke visitor on the value held by this object.

template<class VISITOR>
decltype(auto)
visit(VISITOR&& visitor);
» more...

Invoke visitor on the value held by this object.

template<class VISITOR>
decltype(auto)
visit(VISITOR&& visitor) const;
» more...

Invoke visitor on the value held by this object.

template<
    class RETURN_TYPE,
    class VISITOR>
RETURN_TYPE
visit(VISITOR&& visitor);
» more...

Invoke visitor on the value held by this object.

template<
    class RETURN_TYPE,
    class VISITOR>
RETURN_TYPE
visit(VISITOR&& visitor) const;
» 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

NameDescription
visitorcallable invoked with the held value