libstdc++ std::fill overload for std::vector<bool>::iterator
authorFrançois Dumont <fdumont@gcc.gnu.org>
Tue, 4 Feb 2020 18:07:06 +0000 (19:07 +0100)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 6 May 2020 21:28:22 +0000 (23:28 +0200)
commit72a54e5e8157508c87594d1a6b53de90b76524ce
tree43e27893f50c6b69a87b4f195789655f5c6969fb
parentd3a1459cd4f2d4997fb53e34ddef72e91a7855c1
libstdc++ std::fill overload for std::vector<bool>::iterator

  Extend the overload so that it is used even when _GLIBCXX_DEBUG mode
is activated.

* include/bits/stl_algobase.h (struct _Bit_iterator): New declaration.
(std::__fill_a1(_Bit_iterator, _Bit_iterator, const bool&)): Likewise.
* include/bits/stl_bvector.h (__fill_bvector): Move outside
_GLIBCXX_STD_C namespace.
(fill(_Bit_iterator, _Bit_iterator, const bool&)): Likewise and rename
into...
(__fill_a1): ...this.
* testsuite/25_algorithms/fill/bvector/1.cc: New.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algobase.h
libstdc++-v3/include/bits/stl_bvector.h
libstdc++-v3/testsuite/25_algorithms/fill/bvector/1.cc [new file with mode: 0644]