cpp/regex/match results/empty

From Cppreference

Jump to: navigation, search

Template:cpp/container/match results/title Template:cpp/container/match results/sidebar

bool empty() const;
(no container - C++11 feature)

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

  (C++11 feature)

[edit] Complexity

Constant

See also

size
returns the number of elements
(public member function)