mrdocs::dom::newObject

Return a new object using a custom implementation.

Synopsis

Declared in <mrdocs/Dom/Object.hpp>

template<
    class T,
    class... Args>
requires std::derived_from<T, ObjectImpl>
Object
newObject(Args&&... args);

Return Value

A new object using the specified implementation.

Template Parameters

NameDescription
TThe type of the custom implementation. This must be derived from ObjectImpl.
ArgsThe types of the arguments.

Parameters

NameDescription
argsArguments forwarded to the constructor of T.