r276638 - in /trunk/libstdc++-v3: ChangeLog inc...

fdumont@gcc.gnu.org fdumont@gcc.gnu.org
Sun Oct 6 15:29:00 GMT 2019


Author: fdumont
Date: Sun Oct  6 15:29:04 2019
New Revision: 276638

URL: https://gcc.gnu.org/viewcvs?rev=276638&root=gcc&view=rev
Log:
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.


Added:
    trunk/libstdc++-v3/testsuite/25_algorithms/copy_n/istreambuf_iterator/
    trunk/libstdc++-v3/testsuite/25_algorithms/copy_n/istreambuf_iterator/1.cc
    trunk/libstdc++-v3/testsuite/25_algorithms/copy_n/istreambuf_iterator/1_neg.cc
    trunk/libstdc++-v3/testsuite/25_algorithms/copy_n/istreambuf_iterator/2_neg.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_algo.h
    trunk/libstdc++-v3/include/bits/streambuf_iterator.h



More information about the Libstdc++-cvs mailing list