[PATCH] __debug::list use C++11 direct initialization
François Dumont
frs.dumont@gmail.com
Tue Oct 9 05:11:00 GMT 2018
Here is the communication for my yesterday's patch which I thought svn
had failed to commit (I had to interrupt it).
Similarly to what I've done for associative containers here is a cleanup
of the std::__debug::list implementation leveraging more on C++11 direct
initialization.
I also made sure we use consistent comparison between
iterator/const_iterator in erase and emplace methods.
2018-10-08 François Dumont <fdumont@gcc.gnu.org>
   * include/debug/list (list<>::cbegin()): Use C++11 direct
   initialization.
   (list<>::cend()): Likewise.
   (list<>::emplace<>(const_iterator, _Args&&...)): Likewise.
   (list<>::insert(const_iterator, initializer_list<>)): Likewise.
   (list<>::insert(const_iterator, size_type, const _Tp&)): Likewise.
   (list<>::erase(const_iterator, const_iterator)): Ensure consistent
   iterator comparisons.
   (list<>::splice(const_iterator, list&&, const_iterator,
   const_iterator)): Likewise.
Tested under Linux x86_64 Debug mode and committed.
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug_list.patch
Type: text/x-patch
Size: 4194 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20181009/b0d5d2e0/attachment.bin>
More information about the Libstdc++
mailing list