| Home | Libraries | People | FAQ | More

## Type definition tuple_size

tuple_size

## Synopsis

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

    template<typename T>
    using tuple_size = unspecified;

## Description

Has a static const member variable `value` that contains fields count in a T. Works for any T that satisfies simple aggregate .

Example:

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