[PATCH][_GLIBCXX_DEBUG] Minor optimization
Jonathan Wakely
jwakely@redhat.com
Thu Mar 19 18:36:37 GMT 2026
On Thu, 19 Mar 2026 at 18:06, François Dumont <frs.dumont@gmail.com> wrote:
>
> Hi
>
> May be something that I should have committed as trivial but it's also
> trivial to review.
>
> libstdc++: [_GLIBCXX_DEBUG] Minor optimization on safe iterator detach
>
> An iterator cannot be at the same time const and mutable so it
> cannot be
> at the same time in both list of iterators maintained at debug
> container
> level.
>
> libstdc++-v3/ChangeLog:
>
> * src/c++11/debug.cc
> (_Safe_sequence_base::_M_detach_single): Do not
> check if input iterator is equal to _M_iterators if already
> equal to
> _M_const_iterators.
> (_Safe_unordered_container_base::_M_detach_local_single): Do not check
> if input local iterator is equal to _M_local_iterators if
> already equal
> to _M_const_local_iterators.
>
> Ok to commit ?
OK
More information about the Libstdc++
mailing list