![]() |
![]()
| ![]() |
![]()
NAMEstd::array::max_size - std::array::max_size Synopsisconstexpr size_type max_size() const noexcept; (since C++11)
Parameters(none) Return valueMaximum number of elements. ComplexityConstant. Notes Because each std::array<T, N> is a fixed-size container,
the value returned by
Example// Run this code
Output:Maximum size of the std::array is 10 See also size returns the number of elements
|