function object
std::ranges::size
- Header
<ranges>- Draft
- [range.prim.size]
- Scope
std::ranges- cppreference
- std::ranges::size
Synopsis
inline constexpr /* implementation-defined */ size = {};Call signatures
size 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>>) && (std::is_bounded_array_v<std::remove_reference_t<T>> || member<T> || adl<T> || difference<T>) [[nodiscard]] constexpr auto size(T&& t) noexcept(nothrow<T>());