function object
std::ranges::views::reverse
- Header
<ranges>- Draft
- [alg.reverse]
- Scope
std::ranges::views- cppreference
- <ranges> nearest page
Synopsis
inline constexpr /* implementation-defined */ reverse = {};Call signatures
reverse 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 is-reverse-view<std::remove_cvref_t<E>> || (is-optional<std::remove_cvref_t<E>> && std::ranges::view<std::remove_cvref_t<E>>) || is-reversed-subrange<std::remove_cvref_t<E>> || requires { std::ranges::reverse_view{std::declval<E>( )}; } [[nodiscard]] constexpr auto reverse(E&& e);