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

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Global tuple_size_v

boost::pfr::tuple_size_v

Synopsis

// In header: <boost/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 supports aggregate initialization.

Example:

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


PrevUpHomeNext