constexpr bool empty() const; | (since C++20) |
Checks whether the subrange
is empty, i.e. the stored iterator and sentinel compare equal.
(none).
true
if the stored iterator and sentinel compare equal, false
otherwise.
(C++20) | obtains the size of the subrange (public member function) |
(C++17) | checks whether the container is empty (function template) |
(C++20) | checks whether a range is empty (customization point object) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/subrange/empty