Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Type definition tuple_element_t
PrevUpHomeNext

Type definition tuple_element_t

tuple_element_t — Type of a field with index I in simple aggregate T.

Synopsis

// In header: <boost/pfr/core.hpp>


template<std::size_t I, typename T> 
using tuple_element_t = typename tuple_element< I, T >::type;

Description

Example:

std::vector< boost::pfr::tuple_element_t<0, my_structure> > v;


PrevUpHomeNext