Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the develop branch, built from commit afebb7b30f.
PrevUpHomeNext
visit (1 of 3 overloads)

Invoke a function object with the contents of a value.

Synopsis

Defined in header <boost/json/visit.hpp>

template<
    class Visitor>
auto
visit(
    Visitor&& v,
    value& jv);
Description

Invokes v as if by std::forward<Visitor>(v)( X ), where X is

Return Value

The value returned by Visitor.

Parameters

Name

Description

v

The visitation function to invoke

jv

The value to visit.

Convenience header <boost/json.hpp>


PrevUpHomeNext