![]() |
![]()
| ![]() |
![]()
NAMEstd::set::size - std::set::size Synopsis size_type size() const; (until 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::set<int>: // Run this code
Output:nums contains 4 elements. See also empty checks whether the container is empty
|