std::ranges::chunk_view::chunk_view - cppreference.com (original) (raw)

Constructs a chunk_view, initializing the underlying data members:

In addition, if V models exactly the input_range, the constructor initializes the following exposition-only data members:

The behavior is undefined if n is less than or equal to ​0​.

[edit] Parameters

base - the adapted view
n - the chunk size

[edit] Example