NeBuild dev
Loading...
Searching...
No Matches
inserter< T > Struct Template Reference

Helper class for suppressing move-construction in single-argument array constructors. More...

#include <forward_declarations.hpp>

Public Attributes

value
 

Detailed Description

template<typename T>
struct inserter< T >

Helper class for suppressing move-construction in single-argument array constructors.

\detail \cpp // desired result: [ [ 42 ] ] auto bad = toml::array{ toml::array{ 42 } }; auto good = toml::array{ toml::inserter{ toml::array{ 42 } } }; std::cout << "bad: " << bad << "\n"; std::cout << "good:" << good << "\n"; \ecpp \out bad: [ 42 ] good: [ [ 42 ] ] \eout

See also
toml::array

Member Data Documentation

◆ value

template<typename T >
T inserter< T >::value

The documentation for this struct was generated from the following file: