Scroll to navigation

std::match_results::empty(3) C++ Standard Libary std::match_results::empty(3)

NAME

std::match_results::empty - std::match_results::empty

Synopsis

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

Checks whether the match was successful.

Parameters

(none)

Return value

true if *this represents the result of a failed match, false otherwise, i.e. size() == 0.

Exceptions

May throw implementation-defined exceptions.

Complexity

Constant.

See also

size returns the number of matches in a fully-established result state
(public member function)

2026.11.10 http://cppreference.com