Namespaces
Variants
Views
Actions

std::stack::empty

From cppreference.com
< cpp‎ | container‎ | stack
Revision as of 19:35, 31 May 2013 by P12bot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
bool empty() const;

Checks if the underlying container has no elements, i.e. whether c.empty().

Contents

[edit] Parameters

(none)

[edit] Return value

true if the underlying container is empty, false otherwise

[edit] Complexity

Constant

[edit] See also

returns the number of elements
(public member function) [edit]