constexpr subrange( /*convertible-to-non-slicing*/<I> auto i, S s )
requires (!/*StoreSize*/);
/*make-unsigned-like-t*/<std::iter_difference_t<I>> n )
Constructs a subrange
.
For the definitions of /*make-unsigned-like-t*/ and /*different-from*/, see make-unsigned-like-t
and different-from
respectively.
If
[
i,
s)
is not a
valid range, the behavior is undefined.
3)If any of the following conditions is satisfied, the behavior is undefined:
[
i,
s)
is not a valid range.
to-unsigned-like
(ranges::distance(i, s)) is false.The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR Applied to Behavior as published Correct behavior P2393R1 C++20 for overload (4),size_
might be initialized with ranges::size(r), but it is
RetroSearch 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