function object
std::ranges::views::as_rvalue
- Header
<ranges>- Draft
- [ranges.syn]
- Scope
std::ranges::views- cppreference
- <ranges> nearest page
Synopsis
inline constexpr /* implementation-defined */ as_rvalue = {};Call signatures
as_rvalue is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<class E> requires requires { std::ranges::as_rvalue_view(std::declval<E>()); } || (std::ranges::input_range<E> && std::same_as<std::ranges::range_rvalue_reference_t<E>, std::ranges::range_reference_t<E>> && requires { std::views::all(std::declval<E>()); }) [[nodiscard]] constexpr auto as_rvalue(E&& e);