You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns: An iterator pointing to the first element of rg that was not inserted into *this, or ranges::end(rg) if no such element exists.
This doesn't seem right because ranges::end might be different than ranges::begin making it impossible to convert to borrowed_iterator_t<R>. Given that there is no description for such a situation in the [container] as described in [algorithm#requirements-13]:
In the description of algorithm return values, a sentinel value s denoting the end of a range [i, s) is sometimes returned where an iterator is expected. In these cases, the semantics are as if the sentinel is converted into an iterator using ranges::next(i, s).
Should we revert the current wording to make it consistent with the original wording?
The wording of Returns for
try_append_range
in the original paper is:It was changed after 37a6c0d to:
This doesn't seem right because
ranges::end
might be different thanranges::begin
making it impossible to convert toborrowed_iterator_t<R>
. Given that there is no description for such a situation in the [container] as described in [algorithm#requirements-13]:Should we revert the current wording to make it consistent with the original wording?
@jwakely @tkoeppe
The text was updated successfully, but these errors were encountered: