| ||||||||||||||||||||||
| Range primitives | |||||||
| |||||||
| Range concepts | |||||||||||||||||||
| |||||||||||||||||||
| Range factories | |||||||||
| |||||||||
| Range adaptors | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Helper items | |||||||||||||||||
| |||||||||||||||||
| Member functions | ||||
enumerate_view::reserve_hint (C++26) | ||||
| Deduction guides | ||||
| Nested classes | ||||
| Iterator | ||||
| Sentinel | ||||
constexprauto reserve_hint() requires ranges::approximately_sized_range<V> | (1) | (since C++26) |
constexprauto reserve_hint()const requires ranges::approximately_sized_range<const V> | (2) | (since C++26) |
Equivalent toreturn ranges::reserve_hint(base_ );
Contents |
The approximate size of the resulting range.
| Feature-test macro | Value | Std | Feature |
|---|---|---|---|
__cpp_lib_ranges_reserve_hint | 202502L | (C++26) | ranges::approximately_sized_range andreserve_hint(1,2) |
| This section is incomplete Reason: no example |
returns the number of elements, provided only if the underlying (adapted) range satisfiessized_range(public member function)[edit] |