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 an old version of Boost. Click here to view this page for the latest version.
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);
Description
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