Namespaces
Variants
Views
Actions

deduction guides for std::ranges::stride_view

From cppreference.com
< cpp‎ | ranges‎ | stride view
 
 
Ranges library
Range adaptors
 
 
Defined in header <ranges>
template< class R >
stride_view( R&&, ranges::range_difference_t<R> ) -> stride_view<views::all_t<R>>;
(since C++23)

The deduction guide is provided for std::ranges::stride_view to allow deduction from range and number of elements.

[edit] Example