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 master branch, built from commit c6a8213e9b.
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