summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/test_iterators.h
Commit message (Collapse)AuthorAgeFilesLines
* [libc++][P0202] Marked algorithms copy/copy_n/copy_if/copy_backward constexprLouis Dionne2019-11-061-7/+7
| | | | | | Thanks to Michael Park for the patch. Differential Revision: https://reviews.llvm.org/D68837
* Update more file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | | to reflect the new license. These used slightly different spellings that defeated my regular expressions. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351648
* Make next/prev/advance/distance operations on iterators be constexpr. I ↵Marshall Clow2017-05-171-64/+64
| | | | | | missed this when I implemented the rest of P0031R0 llvm-svn: 303281
* Replace _LIBCPP_HAS_NO_DELETED_FUNCTIONS with _LIBCPP_CXX03_LANGEric Fiselier2017-01-061-1/+1
| | | | llvm-svn: 291278
* Implement C++17 std::sample.Eric Fiselier2016-08-281-1/+1
| | | | | | | | This patch implements the std::sample function added to C++17 from LFTS. It also removes the std::experimental::sample implementation which now forwards to std::sample. llvm-svn: 279948
* Implement LWG 2711. Constrain path members.Eric Fiselier2016-08-281-11/+13
| | | | llvm-svn: 279945
* Remove trailing whitespace in test suite. Approved by Marshall Clow.Eric Fiselier2016-06-011-3/+3
| | | | llvm-svn: 271435
* Add missing include to test_iterators.hEric Fiselier2016-05-271-0/+1
| | | | llvm-svn: 271074
* Got the test backwards in r258279. Fixed that and de-tabbedMarshall Clow2016-01-201-166/+166
| | | | llvm-svn: 258281
* Fix up the tests I added for string exceptions to be skipped when exceptions ↵Marshall Clow2016-01-201-0/+21
| | | | | | are disabled llvm-svn: 258279
* Fix PR#25973 : 'basic_string::assign(InputIt, InputIt) doesn't provide the ↵Marshall Clow2016-01-131-0/+199
| | | | | | strong exception safety guarantee'. This turned out to be a pervasive problem in <string>, which required a fair amount of rework. Add in an optimization for when iterators provide noexcept increment/comparison/assignment/dereference (which covers many of the iterators in libc++). Reviewed as http://reviews.llvm.org/D15862 llvm-svn: 257682
* Since Eric poisoned the comma operator on all our test iterators, we no ↵Marshall Clow2014-11-181-105/+0
| | | | | | longer need 'comma_iterator'. Remove it from the test suite. llvm-svn: 222238
* Fix use of operator comma in is_permutation and delete comma operator for ↵Eric Fiselier2014-10-271-5/+13
| | | | | | | | | test iterators. The comma operators in the test iterators give better error messages when they are deleted as opposed to not defined. Delete these functions when possible. llvm-svn: 220715
* [libcxx] Fix use of operator comma where the types can be user definedEric Fiselier2014-10-271-0/+15
| | | | | | | | | | | | | | | | Summary: An evil user might overload operator comma. Use a void cast to make sure any user overload is not selected. Modify all the test iterators to define operator comma. Reviewers: danalbert, mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5929 llvm-svn: 220706
* Add include of <cassert> for the operator commaMarshall Clow2014-09-171-0/+1
| | | | llvm-svn: 217938
* Create a 'comma_iterator' class that overloads operator, and asserts when ↵Marshall Clow2014-09-161-0/+105
| | | | | | it's called. Add tests to mismatch to make sure it can't be blindsided by such an evil iterator. More tests for other algorithms forthcoming. Thanks to STL for pointing this out at CppCon and Yakov Galka for opening LWG issue #2133 llvm-svn: 217902
* Add license headers to a bunch of libc++ files that were missing them. No ↵Marshall Clow2014-01-161-0/+9
| | | | | | functionality change. Fixes 18291. Thanks to Nico for the bug report and the patch. llvm-svn: 199400
* War on tabs.Howard Hinnant2013-07-081-1/+1
| | | | llvm-svn: 185865
* Made test output iterators have value_type of 'void'; matches ones in libraryMarshall Clow2013-01-091-1/+1
| | | | llvm-svn: 171980
* Move common header files into a 'support' directory; make 'testit' include ↵Marshall Clow2013-01-051-0/+296
-I to that directory; rename 'iterators.h' to 'iterator_test.h'; remove hard-coded paths to include files from more than 350 source files llvm-svn: 171594
OpenPOWER on IntegriCloud