]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add std::copy_n istreambuf_iterator specialization
authorfdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Oct 2019 15:29:04 +0000 (15:29 +0000)
committerfdumont <fdumont@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Oct 2019 15:29:04 +0000 (15:29 +0000)
commite908afccb0e0017bfa248130e284c70b00814d62
tree347b3844ba6d144b3295a26fef1558ee4bec7c25
parenta8f3cf77c427634af74c52048438203e2106931f
Add std::copy_n istreambuf_iterator specialization

* include/bits/stl_algo.h
(__copy_n_a(_IIte, _Size, _OIte)): New.
(__copy_n_a(istreambuf_iterator<>, _Size, _CharT*)): New declaration.
(__copy_n(_IIte, _Size, _OIte, input_iterator_tag)): Adapt to use
latter.
* include/bits/streambuf_iterator.h (istreambuf_iterator<>): Declare
std::__copy_n_a friend.
(__copy_n_a(istreambuf_iterator<>, _Size, _CharT*)): New.
* testsuite/25_algorithms/copy_n/istreambuf_iterator/1.cc: New.
* testsuite/25_algorithms/copy_n/istreambuf_iterator/1_neg.cc: New.
* testsuite/25_algorithms/copy_n/istreambuf_iterator/2_neg.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276638 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/include/bits/streambuf_iterator.h
libstdc++-v3/testsuite/25_algorithms/copy_n/istreambuf_iterator/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/copy_n/istreambuf_iterator/1_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/copy_n/istreambuf_iterator/2_neg.cc [new file with mode: 0644]