deduction guides for std::ranges::drop_while_view

From cppreference.com
 
 
Ranges library
Range access
Range conversions
(C++23)
Range primitives



Dangling iterator handling
Range concepts
Views

Factories






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

The deduction guide is provided for std::ranges::drop_while_view to allow deduction from range and predicate.

If R is a view, the deduced type is drop_while_view<R>; otherwise, the deduced type is usually drop_while_view<ranges::ref_view<R>>.

Example