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