std::ranges::range_reference_t, std::ranges::range_const_reference_t, std::ranges::range_rvalue_reference_t, std::ranges::range_common_reference_t - cppreference.com
From cppreference.com
| Defined in header |
||
|
|
(1) | (since C++20) |
|
|
(2) | (since C++23) |
|
|
(3) | (since C++20) |
|
|
(4) | (since C++20) |
1) Used to obtain the reference type of the iterator type of range type R.
2) Used to obtain the constant reference type of the iterator type of range type R.
3) Used to obtain the rvalue reference type of the iterator type of range type R.
4) Used to obtain the common reference type of the iterator type of range type R.
Template parameters
Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 3860 | C++20 | range_common_reference_t was missing
|
added |