These deduction guides are provided for std::ranges::subrange.
1)Deduces the template arguments from the type of iterator and sentinel. The
subrange
is sized if
std::sized_sentinel_for<S, I>is satisfied, as determined by the default template argument.
2) Deduces the template arguments from the type of iterator and sentinel, while the size of range is specified. The subrange
is always sized.
3) Deduces the template arguments from the type of range. The subrange
is sized if the size can be obtained from the range or its iterator and sentinel.
4) Deduces the template arguments from the type of range, while the size of range is specified. The subrange
is always sized.
For the definition of /* make-unsigned-like-t */, see make-unsigned-like-t
.
While constructing the subrange
object,
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR Applied to Behavior as published Correct behavior LWG 3404 C++20 meaningless deduction guides from pair-like types were provided removedRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4