iox::cxx::in_place_index🔗
helper struct to perform an emplacement at a predefined index in the constructor of a variant More...
#include <variant.hpp>
Public Attributes🔗
Name | |
---|---|
constexpr uint64_t | value |
Detailed Description🔗
template <uint64_t N>
struct iox::cxx::in_place_index;
helper struct to perform an emplacement at a predefined index in the constructor of a variant
Parameters:
- N index where to perform the placement new
cxx::variant<int, float, int> someVariant(cxx::in_place_index<2>(), 42);
Public Attributes Documentation🔗
variable value🔗
static constexpr uint64_t value = N;
Updated on 31 May 2022 at 15:29:15 CEST