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