.. _sprout-array-array-std-tuple_element: ############################################################################### std::tuple_element ############################################################################### Interface ======================================== .. sourcecode:: c++ namespace std { template struct tuple_element >; } // syntax std::tuple_element >::type Requires ======================================== | ``I < N``. The program is ill-formed if I is out of bounds. Value ======================================== | The type T. Examples ======================================== .. sourcecode:: c++ #include #include using namespace sprout; using type = array; using element_type = std::tuple_element<0, type>::type; static_assert(std::is_same::value, "tuple element type of array is int."); Header ======================================== | ``sprout/array/tuple.hpp`` | Convenience header: ``sprout/array.hpp``