constexpr size_type max_size() noexcept;
123456789101112
// array::max_size #include <iostream> #include <array> int main () { std::array<int,10> myints; std::cout << "size of myints: " << myints.size() << std::endl; std::cout << "max_size of myints: " << myints.max_size() << std::endl; return 0; }
size of myints: 10 max_size of myints: 10