libycxx

function object

std::ranges::data

Header
<ranges>
Scope
std::ranges

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>());
    (1)