...
Size
Let's find out how we can check the size and capacity of C++ containers.
For a container cont, use cont.empty() to see if the container is empty. cont.size() returns the ...
cont
cont.empty()
cont.size()