mrdocs::dom::ValueFrom
Convert an object of type T to dom::Value.
Synopsis
Declared in <mrdocs/Dom/Value.hpp>
template<class T>
requires HasStandaloneValueFrom<T>
void
ValueFrom(
T&& t,
Value& v);
Description
This function attempts to convert an object of type T to dom::Value using
-
a user‐provided overload of
tag_invoke. -
one of
dom::Value's constructors,
Conversion of other types is done by calling an overload of tag_invoke found by argument‐dependent lookup. Its signature should be similar to:
void tag_invoke( ValueFromTag, dom::Value&, T );
Parameters
| Name | Description |
|---|---|
t |
The object to convert. |
v |
|