# std::ranges::subrange<I,S,K>::empty

From cppreference.com
< cpp‎ | ranges‎ | subrange

constexpr bool empty() const; |  | (since C++20)

Checks whether the `subrange` is empty, i.e. the stored iterator and sentinel compare equal.

### Parameters

(none)

### Return value

true if the stored iterator and sentinel compare equal, false otherwise.

### Example

| This section is incomplete Reason: no example

### See also

size (C++20) | obtains the size of the `subrange` (public member function)
empty (C++17) | checks whether the container is empty (function template)
ranges::empty (C++20) | checks whether a range is empty (customization point object)

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/subrange/empty&oldid=129335"