[PATH 3/3] libstdc++: Add std::advance ostreambuf_iterator overload

François Dumont frs.dumont@gmail.com
Wed Sep 9 20:12:29 GMT 2020


libstdc++: Add std::advance overload for ostreambuf_iterator

Implement std::advance overload for ostreambuf_iterator using 
basic_streambuf
pubseekof.

libstdc++-v3/ChangeLog:

         * include/bits/streambuf_iterator.h (ostreambuf_iterator): Add
         std::advance friend declaration.
         (advance(ostreambuf_iterator<>&, _Distance)): New.
         * testsuite/25_algorithms/advance/ostreambuf_iterator/char/1.cc:
         New test.
         * 
testsuite/25_algorithms/advance/ostreambuf_iterator/char/1_neg.cc:
         New test.
         * testsuite/25_algorithms/advance/ostreambuf_iterator/char/2.cc:
         New test.
         * 
testsuite/25_algorithms/advance/ostreambuf_iterator/char/2_neg.cc:
         New test.

Tested under Linux x85_64.

Ok to commit ?

François

-------------- next part --------------
A non-text attachment was scrubbed...
Name: advance_ostreambuf_iterator.patch
Type: text/x-patch
Size: 8592 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200909/a33cbf67/attachment.bin>


More information about the Gcc-patches mailing list