W3cubDocs

/C++

std::ranges::zip_view<Views...>::zip_view

zip_view() = default;
(1) (since C++23)
constexpr zip_view( Views... views );
(2) (since C++23)
1) Default constructor. Value-initializes all adapted view objects.
The default constructor is deleted if std::is_default_constructible_v is false for at least one type in Views....
2) Move constructs every adapted view object from the corresponding view in views....

Parameters

views - view objects to adapt

Example

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