[PATCH] Improve std::fill for vector<bool>

Jonathan Wakely jwakely@redhat.com
Thu May 7 20:49:03 GMT 2020

On 06/05/20 20:35 +0100, Jonathan Wakely wrote:
>On 06/05/20 20:46 +0200, François Dumont via Libstdc++ wrote:
>>I am not clear about current stage so I am proposing this trivial 
>>patch to find out if we are back in stage 1.
>The current status is always shown on the front page of gcc.gnu.org
>(although currently the link to the GCC 11 status is broken, because
>the list archives got renumbered for some reason, it should be
>https://gcc.gnu.org/pipermail/gcc/2020-April/000505.html for GCC 11).
>>This patch 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.
>>Tested under Linux x86_64 normal and debug modes.
>>Ok to commit ?
>OK, thanks.

I've just fixed the indentation in libstdc++-v3/ChangeLog to use
leading tabs not spaces (at 91d505491c7deda61de04dd64da008e0205abf74).

More information about the Gcc-patches mailing list