tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
in_place_index_t< I > 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_index.hpp>

Public Member Functions

 in_place_index_t ()=default
 

Related Symbols

(Note that these are not member symbols.)

template<size_t I>
constexpr auto in_place_index = in_place_index_t<I>{}
 

Detailed Description

template<size_t I>
struct etl::in_place_index_t< I >

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_index_t()

template<size_t I>
in_place_index_t ( )
explicitdefault

Friends And Related Symbol Documentation

◆ in_place_index

template<size_t I>
template<size_t I>
auto in_place_index = in_place_index_t<I>{}
related

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