The Wayback Machine - https://web.archive.org/web/20120609140537/http://en.cppreference.com/w/cpp/container/unordered_map/empty

std::unordered_map::empty

From cppreference.com
Jump to: navigation, search
bool empty() const;
(since C++11)

Checks if the container has no elements, i.e. whether begin() == end().

Contents

[edit] Parameters

(none)

[edit] Return value

true if the container is empty, false otherwise

[edit] Exceptions

noexcept specification:  
noexcept
  (since C++11)

[edit] Complexity

Constant

See also

returns the number of elements
(public member function) [edit]
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox