Namespaces
Variants
Actions

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

From cppreference.com
< cpp‎ | ranges‎ | subrange
 
C++
 
Ranges library
Range adaptors
 
std::ranges::subrange
constexpr bool empty() const;
(since C++20)

Checks whether the subrange is empty.

[edit] Return value

begin_ == end_.

[edit] Example

[edit] See also

obtains the size of the subrange
(public member function) [edit]
(C++17)
checks whether the container is empty
(function template) [edit]
checks whether a range is empty
(customization point object)[edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant