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);

Invoke visitor on the value held by this object.

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

Invoke visitor on the value held by this object.

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

Invoke visitor on the value held by this object.

template<
    class RETURN_TYPE,
    class VISITOR>
RETURN_TYPE
visit(VISITOR&& visitor) const;

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

Name

Description

visitor

callable invoked with the held value

Created with MrDocs