Namespaces
Variants
Views
Actions

std::queue::size

From cppreference.com
< cpp‎ | container‎ | queue
Revision as of 11:20, 2 November 2012 by P12bot (Talk | contribs)

size_type size() const;

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

Contents

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) [edit]