![]() |
Home | Libraries | People | FAQ | More |
Convert an object of type T
to value.
Defined in header <boost/json/value_from.hpp>
template< class T> void value_from( T&& t, value& jv);
This function attempts to convert an object of type T
to value
using
value's
constructors,
tag_invoke.
In all cases, the conversion is done by calling an overload of tag_invoke found by argument-dependent
lookup. Its signature should be similar to:
void tag_invoke( value_from_tag, value&, T );
Strong guarantee.
|
Type |
Description |
|---|---|
|
|
The type of the object to convert. |
|
Name |
Description |
|---|---|
|
|
The object to convert. |
|
|
|
value_from_tag,
value_to,
tag_invoke:
A general pattern for supporting customisable functions
Convenience header <boost/json.hpp>