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