Namespaces
Variants
Views
Actions

deduction guides for std::ranges::slide_view

From cppreference.com
< cpp‎ | ranges‎ | slide view
 
 
Ranges library
Range access
Range conversions
(C++23)
Range primitives



Dangling iterator handling
Range concepts
Views

Factories




Adaptors
Range generators
Range adaptor objects
Range adaptor closure objects
Helper items
 
 
Defined in header <ranges>
template< class R >
slide_view( R&&, ranges::range_difference_t<R> ) -> slide_view<views::all_t<R>>;
(since C++23)

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

[edit] Example