libycxx

function object

std::ranges::reserve_hint

Header
<ranges>
Scope
std::ranges
cppreference
<ranges> nearest page

Synopsis

inline constexpr /* implementation-defined */ reserve_hint = {};

Call signatures

reserve_hint 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 requires(T& t) { std::ranges::size(t); } || member<T> || adl<T>
    [[nodiscard]] constexpr auto reserve_hint(T&& t) noexcept(nothrow<T>());
    (1)