Automatically map all described members of a type to the DOM.
Synopsis
Declared in <mrdocs/Support/MapReflectedType.hpp>
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. When true, adds the $meta object. |
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