.. _sprout-string-basic_string-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 = string<8>; SPROUT_STATIC_CONSTEXPR auto n = std::tuple_size::value; static_assert(n == 8, "tuple size of string is 8."); Header ======================================== | ``sprout/string/tuple.hpp`` | Convenience header: ``sprout/string.hpp``