function object
std::ranges::views::stride
- Header
<ranges>- Draft
- [ranges.syn]
- Scope
std::ranges::views- cppreference
- <ranges> nearest page
Synopsis
inline constexpr /* implementation-defined */ stride = {};Call signatures
stride is a function object; these are its call operators as libycxx declares them, written as the functions the draft declares.
- (1)
template<class N> [[nodiscard]] constexpr auto stride( N&& n) noexcept(noexcept(bind-adaptor(*this, static_cast<N &&>(n)))) requires requires { bind-adaptor(*this, static_cast<N&&>(n)); }; - (2)
template<class E, class N> requires requires { View(std::declval<E>(), std::declval<N>()); } [[nodiscard]] constexpr auto stride(E&& e, N&& n);