PR: #39399
Unanswered: should this method be part of DoubleEndedIterator or Iterator?
Pros:
- Avoids cluttering
Iterator docs
- Avoids extra constraint in
where clause
- Puts method where it is actually enabled
Cons:
- Inconsistency if other methods (
rev, rposition) aren't moved to DEI
- Breaking change if other methods are moved to DEI
- Fragments iterator docs; no longer just in
Iterator
- Requires typing
DoubleEndedIterator::rfind if passed into a function instead of Iterator::find
Noting the above, should Iterator::rev and Iterator::rposition be moved to DEI as well?
PR: #39399
Unanswered: should this method be part of
DoubleEndedIteratororIterator?Pros:
IteratordocswhereclauseCons:
rev,rposition) aren't moved to DEIIteratorDoubleEndedIterator::rfindif passed into a function instead ofIterator::findNoting the above, should
Iterator::revandIterator::rpositionbe moved to DEI as well?