.. _sprout-array-array-std-tuple_size: ############################################################################### std::tuple_size ############################################################################### Interface ======================================== .. sourcecode:: c++ namespace std { template struct tuple_size >; } // syntax std::tuple_size >::value Return type ======================================== | integral constant expression. Value ======================================== | N. Examples ======================================== .. sourcecode:: c++ #include using namespace sprout; using type = array; SPROUT_STATIC_CONSTEXPR auto n = std::tuple_size::value; static_assert(n == 10, "tuple size of array is 10."); Header ======================================== | ``sprout/array/tuple.hpp`` | Convenience header: ``sprout/array.hpp``