Boost C++ Libraries Home Libraries People FAQ More

PrevUpHome

Global tuple_size_v

pfr::tuple_size_v

Synopsis

// In header: <pfr/tuple_size.hpp>

constexpr std::size_t tuple_size_v;

Description

tuple_size_v is a template variable that contains fields count in a T and works for any T that satisfies simple aggregate .

Example:

std::array<int, pfr::tuple_size_v<my_structure> > a;


PrevUpHome