deduction guides for std::ranges::drop_view

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



Dangling iterator handling
Range concepts
Views

Range factories
Range adaptors
Range generators
Range adaptor objects
Range adaptor closure objects
Helper items
(until C++23)(C++23)


 
std::ranges::drop_view
Member functions
Deduction guides
 
Defined in header <ranges>
template< class R >
drop_view( R&&, ranges::range_difference_t<R> ) -> drop_view<views::all_t<R>>;
(since C++20)

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

Example