commit | 171869e27ce52cf45386baf45f8d2b6bd5e3bf27 | [log] [tgz] |
---|---|---|
author | Howard Hinnant <hhinnant@apple.com> | Sun Feb 27 20:55:39 2011 +0000 |
committer | Howard Hinnant <hhinnant@apple.com> | Sun Feb 27 20:55:39 2011 +0000 |
tree | 90c4ee667229021fc81bdb97c6465cf670c627b1 | |
parent | df85e57f4a33ccaa56e044bac98e2752ace52303 [diff] |
Fix copy_n to increment only n-1 times for an input iterator. This works much better with std::istream_iterator<int>(std::cin). Credit: Matan Nassau. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@126581 91177308-0d34-0410-b5e6-96231b3b80d8