visit
Invoke a function object with the contents of a value.
Synopsis
Defined in header <boost/json/visit.hpp>.
Description
Invokes v as if by std::forward<Visitor>(v)( X ), where X is a const (2) or mutable (1) lvalue reference, or an rvalue reference (3) to
-
the underlying stored value, if
jv.kind()is not equal tojson::kind::null; or -
an object of type
std::nullptr_t.
Return Value
The result of calling v.
Parameters
| Name | Description |
|---|---|
|
The visitation function to invoke. |
|
The value to visit. |
Convenience header <boost/json.hpp>