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

From cppreference.com
< cpp‎ | ranges‎ | subrange
 
 
Ranges library
Range access
Range conversions
(哋它亢++23)(哋它亢++23)
(哋它亢++23)

Range primitives
(哋它亢++23)(哋它亢++23)    
(哋它亢++23)



Dangling iterator handling
Range concepts
Views

Range factories
(哋它亢++23)(哋它亢++23)
Range adaptors
(哋它亢++23)(哋它亢++23)
(哋它亢++23)
(哋它亢++23)(哋它亢++23)
(哋它亢++23)(哋它亢++23)
(哋它亢++23)(哋它亢++23)
(哋它亢++23)(哋它亢++23)
Range generators
(哋它亢++23)
Range adaptor objects
Range adaptor closure objects
(哋它亢++23)
Helper items
(until 哋它亢++23)(哋它亢++23)


 
 
constexpr bool empty() const;
(since 哋它亢++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

See also

(哋它亢++20)
obtains the size of the subrange
(public member function)
(哋它亢++17)
checks whether the container is empty
(function template)
(哋它亢++20)
checks whether a range is empty
(customization point object)