tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
in_place_type_t< T > Struct Template Reference

Disambiguation tags that can be passed to the constructors of etl::optional, etl::variant, and etl::any to indicate that the contained object should be constructed in-place, and (for the latter two) the type of the object to be constructed. More...

#include <in_place_type.hpp>

Public Member Functions

 in_place_type_t ()=default
 

Related Symbols

(Note that these are not member symbols.)

template<typename T>
constexpr auto in_place_type = in_place_type_t<T>{}
 

Detailed Description

template<typename T>
struct etl::in_place_type_t< T >

Disambiguation tags that can be passed to the constructors of etl::optional, etl::variant, and etl::any to indicate that the contained object should be constructed in-place, and (for the latter two) the type of the object to be constructed.

The corresponding type/type templates etl::in_place_t, etl::in_place_type_t and etl::in_place_index_t can be used in the constructor's parameter list to match the intended tag.

Constructor & Destructor Documentation

◆ in_place_type_t()

template<typename T>
in_place_type_t ( )
explicitdefault

Friends And Related Symbol Documentation

◆ in_place_type

template<typename T>
template<typename T>
auto in_place_type = in_place_type_t<T>{}
related

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