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 c5b77ff9eb.
PrevUpHomeNext
visit (2 of 2 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 const& jv);
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