Namespaces
Variants
Views
Actions

Difference between revisions of "Template:cpp/container/empty"

From cppreference.com
m (Text replace - "{{complex constant}}" to "Constant")
m (Text replace - "{{param none}}" to "(none)")
Line 7: Line 7:
  
 
===Parameters===
 
===Parameters===
{{param none}}
+
(none)
  
 
===Return value===
 
===Return value===

Revision as of 13:12, 11 October 2011

Template:cpp/container//sidebar

bool empty() const;
Template:cpp/container/mark c++11 feature

Checks if the container has no elements, i.e. whether Template:cpp.

Contents

Parameters

(none)

Return value

Template:cpp if the container is empty, Template:cpp otherwise

Exceptions

noexcept specification:  
noexcept
  

Complexity

Constant

See also

Template:cpp/container/dcl list size