MNX Document Model
Loading...
Searching...
No Matches
mnx::detail::DictionaryAppendBase< Derived, T > Struct Template Reference

Base append implementation for dictionaries of Base-derived types. More...

#include <BaseTypes.h>

+ Inheritance diagram for mnx::detail::DictionaryAppendBase< Derived, T >:

Public Member Functions

template<typename U = T, typename... Args, std::enable_if_t< std::is_base_of_v< Base, U >, int > = 0>
append (std::string_view key, Args &&... args)
 Append a new element at the end of the array. (Available only for Base types)
 

Detailed Description

template<typename Derived, typename T>
struct mnx::detail::DictionaryAppendBase< Derived, T >

Base append implementation for dictionaries of Base-derived types.

Member Function Documentation

◆ append()

template<typename Derived , typename T >
template<typename U = T, typename... Args, std::enable_if_t< std::is_base_of_v< Base, U >, int > = 0>
U mnx::detail::DictionaryAppendBase< Derived, T >::append ( std::string_view  key,
Args &&...  args 
)
inline

Append a new element at the end of the array. (Available only for Base types)

Returns
The newly created element.