libycxx

function object

std::ranges::empty

Header
<ranges>
Scope
std::ranges

Synopsis

inline constexpr /* implementation-defined */ empty = {};

Call signatures

empty is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.

  1. template<class T>
      requires (!std::is_unbounded_array_v<std::remove_reference_t<T>>) && (member<T> || via-size<T> || via-iter<T>)
    [[nodiscard]] constexpr bool empty(T&& t) noexcept(nothrow<T>());
    (1)