std::ranges::take_view<V>::take_view
From cppreference.com
take_view() = default; |
(1) | (since C++20) |
constexpr take_view( V base, ranges::range_difference_t<V> count ); |
(2) | (since C++20) |
Constructs a take_view
.
1) Default constructor. Value-initializes the underlying view and initializes the count to 0. After construction,
base()
returns a copy of V() and size()
returns 0.2) Initializes the underlying view with std::move(base) and the count with count. After construction,
base()
returns a copy of base and size()
returns the smaller of count and ranges::size(base).Parameters
base | - | the underlying view |
count | - | number of elements to take |
Example
This section is incomplete Reason: no example |