std::unordered_set::empty

From cppreference.com

 
 
 
 
bool empty() const;
(since C++11)

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

Parameters

(none)

Return value

true if the container is empty, false otherwise

Exceptions

noexcept specification:  
noexcept
  

Complexity

Constant.