W3cubDocs

/C++

deduction guides for std::ranges::enumerate_view

Defined in header <ranges>
template< class R >
  enumerate_view( R&& ) -> enumerate_view<views::all_t<R>>;
(since C++23)

The deduction guide is provided for std::ranges::enumerate_view to allow deduction from range.

Example

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/ranges/enumerate_view/deduction_guides