| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
| Member functions | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
chunk_view::base | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(C++26) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
constexpr V base()const& requiresstd::copy_constructible<V>; | (1) | (since C++23) |
constexpr V base()&&; | (2) | (since C++23) |
Returns a copy of the underlying view.
base_;.A copy of the underlying view.
A link to test the example online:Compiler Explorer.
#include <print>#include <ranges> int main(){staticconstexprauto v={1,2,3,4};constexprauto w{std::ranges::chunk_view(v,2)};std::println("{}", w.base());}
Output:
[1, 2, 3, 4]