Test that nothrow-forward-iterator subsumes nothrow-input-iterator,
nothrow-forward-range subsumes nothrow-input-range, and
nothrow-sentinel-for and sentinel_for subsume each other.
This is a follow-up to D114761.
Differential D115422
[libc++][ranges] Add subsumption tests to `[special.mem.concepts]`. var-const on Dec 8 2021, 8:25 PM. Authored by
Details
Test that nothrow-forward-iterator subsumes nothrow-input-iterator, This is a follow-up to D114761.
Diff Detail
Event TimelineComment Actions Please let me know if you'd like to add any more subsumption tests, e.g.:
|
Here, requires true is unnecessary: the former should properly subsume the latter, in the sense of "proper subset".
Also, I think it is actually more important (so I'd like to see) that you test "nothrow-sentinel-for and sentinel_for subsume each other." In that case, since the subsumption is not proper, the requires true will be needed in order to make the one function more-constrained than the other.