Scroll to navigation

std::ranges::subrange::empty(3) C++ Standard Libary std::ranges::subrange::empty(3)

NAME

std::ranges::subrange::empty - std::ranges::subrange::empty

Synopsis

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

Checks whether the subrange is empty.

Return value

begin_ == end_.

Example


This section is incomplete
Reason: no example

See also

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

2026.11.10 http://cppreference.com