function object
std::ranges::empty
- Header
<ranges>- Draft
- [range.prim.empty]
- Scope
std::ranges- cppreference
- std::ranges::empty
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>());