| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
| Member functions | ||||
chunk_by_view::base | ||||
| Deduction guides | ||||
| Iterator | ||||
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 viewbase_.
base_;(none)
A copy of the underlying view.
#include <algorithm>#include <functional>#include <ranges> int main(){staticconstexprauto v={1,1,2,2,3,3,3};constexprauto chunks= v| std::views::chunk_by(std::equal_to{}); static_assert(std::ranges::equal(v, chunks.base()));}