try_value_to

Synopsis

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

template<
    class T,
    class Context>
result_for< T, value >::type
try_value_to(
    value const& jv,
    Context const& ctx); (1)

template<
    class T>
result_for< T, value >::type
try_value_to(
    const value& jv); (2)

Convenience header <boost/json.hpp>