Fix a minor bug with std::next and prev not and negative numbers. In particular,...
authorMarshall Clow <mclow.lists@gmail.com>
Fri, 22 Mar 2019 22:32:20 +0000 (22:32 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Fri, 22 Mar 2019 22:32:20 +0000 (22:32 +0000)
commite1cd11d80f5929e916de861f83d672ab72e29046
tree98a5d19f4081728c1fd8281778216a14497d5ef3
parent80ff58e37c96df05bd1811083267c9c53ef1b85f
Fix a minor bug with std::next and prev not and negative numbers. In particular, std::prev cannot require Bidirectional Iterators, because you might 'go back' -1 places, which goes forward. Thanks to Ville and Jonathan for the bug report.

llvm-svn: 356818
libcxx/include/iterator
libcxx/test/libcxx/iterators/advance.debug1.pass.cpp [new file with mode: 0644]
libcxx/test/libcxx/iterators/next.debug1.pass.cpp [new file with mode: 0644]
libcxx/test/libcxx/iterators/prev.debug1.pass.cpp [new file with mode: 0644]
libcxx/test/std/iterators/iterator.primitives/iterator.operations/next.pass.cpp
libcxx/test/std/iterators/iterator.primitives/iterator.operations/prev.pass.cpp