std::ranges::chunk_view::chunk_view - cppreference.com (original) (raw)
Constructs a chunk_view, initializing the underlying data members:
- move constructs the
_[base](../chunk%5Fview.html#base "cpp/ranges/chunk view")_with std::move(base), - initializes the "chunk size"
_[n](../chunk%5Fview.html#n "cpp/ranges/chunk view")_with n.
In addition, if V models exactly the input_range, the constructor initializes the following exposition-only data members:
- initializes the
_[remainder](../chunk%5Fview.html#remainder "cpp/ranges/chunk view")_with 0, - default-initializes the
_[current](../chunk%5Fview.html#current "cpp/ranges/chunk view")_.
The behavior is undefined if n is less than or equal to 0.
[edit] Parameters
| base | - | the adapted view |
|---|---|---|
| n | - | the chunk size |