Boost C++ Libraries Home Libraries People FAQ More

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