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>
Value
ValueFrom(T&& t);

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 );

Exception Safety

Strong guarantee.

Return Value

dom::Value out parameter.

Template Parameters

Name Description

T

The type of the object to convert.

Parameters

Name Description

t

The object to convert.