]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR libstdc++/91748 fix std::for_each_n for random access iterators
authorJonathan Wakely <jwakely@redhat.com>
Thu, 12 Sep 2019 10:51:39 +0000 (11:51 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 12 Sep 2019 10:51:39 +0000 (11:51 +0100)
commit52f6afe06dd86a25b41688ad12dd124b23f27833
tree571e610703702655d902c08dad36f7aa176b4df9
parent58cc98767aa1d8136d36467b892dc4adaf427acc
PR libstdc++/91748 fix std::for_each_n for random access iterators

PR libstdc++/91748
* include/bits/stl_algo.h (for_each_n): Fix random access iterator
case.
* testsuite/25_algorithms/for_each/for_each_n.cc: Test with random
access iterators.

From-SVN: r275683
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_algo.h
libstdc++-v3/testsuite/25_algorithms/for_each/for_each_n.cc