std::stack<T,Container>::size

size_type size() const;

Returns the number of elements in the underlying container, that is, c.size().

Parameters

(none).

Return value

The number of elements in the container.

Complexity

Constant.

See also

checks whether the underlying container is empty
(public member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/container/stack/size