mrdocs::dom::ValueFrom
Convert an object of type T to dom::Value with a context
Synopsis
Declared in <mrdocs/Dom/Value.hpp>
template<
class T,
class Context>
requires HasValueFrom<T, Context>
Value
ValueFrom(
T&& t,
Context const& ctx);
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 );
Return Value
dom::Value out parameter.