mapReflectedType overloads

Synopses

Declared in <mrdocs/Support/MapReflectedType.hpp>

Map all described members without converting values.

template<
    bool isMostDerived,
    typename IO,
    typename T>
requires describe::has_describe_members<T>::value
void
mapReflectedType(
    IO& io,
    T const& obj);

Automatically map all described members of a type to the DOM.

template<
    bool isMostDerived,
    typename IO,
    typename T>
requires describe::has_describe_members<T>::value
void
mapReflectedType(
    IO& io,
    T const& obj,
    DomCorpus const* domCorpus);

Template Parameters

Name

Description

isMostDerived

Whether this is the most‐derived type (adds $meta if true).

Parameters

Name

Description

io

The IO object to use for mapping.

obj

The object to be mapped.

domCorpus

The DomCorpus used to create the DOM values, or a null pointer.

Created with MrDocs