![]() |
![]()
| ![]() |
![]()
NAMEstd::array::size - std::array::size Synopsisconstexpr size_type size() const noexcept; (since C++11)
Parameters(none) Return valueThe number of elements in the container. ComplexityConstant. ExampleThe following code uses size to display the number of elements in a std::array: // Run this code
Output:nums contains 4 elements. See also empty checks whether the container is empty
|