summaryrefslogtreecommitdiffstats
path: root/libcxx/test/containers/sequences
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement full support for non-pointer pointers in custom allocators for ↵Howard Hinnant2013-06-2455-26/+1555
| | | | | | forward_list. llvm-svn: 184759
* Implement full support for non-pointer pointers in custom allocators for deque.Howard Hinnant2013-06-2346-275/+915
| | | | llvm-svn: 184673
* Test case for r183481.Howard Hinnant2013-06-071-0/+20
| | | | llvm-svn: 183522
* After years of telling people: 'If you ever find any of my code that ↵Howard Hinnant2013-04-181-0/+7
| | | | | | self-move-assigns, send me a bug report.' Somebody finally took me up on it. vector::erase(begin(), begin()) does a self-move-assign of every element in the vector, leaving all of those elements in an unspecified state. I checked the other containers for this same bug and did not find it. Added test case. llvm-svn: 179760
* I believe this finishes up debug mode for list. The testing is a little ↵Howard Hinnant2013-04-163-0/+36
| | | | | | weak, but I believe all of the functionality is there. Certainly enough for people to checkout and start beating up on. llvm-svn: 179632
* Fix bug in __libcpp_db::__iterator_copy. Add debug test for swaping lists.Howard Hinnant2013-04-051-0/+42
| | | | llvm-svn: 178892
* More list debug mode tests.Howard Hinnant2013-04-056-0/+228
| | | | llvm-svn: 178873
* More work on debug mode for list.Howard Hinnant2013-04-056-0/+76
| | | | llvm-svn: 178819
* Some debug test cases for list.Howard Hinnant2013-04-028-0/+324
| | | | llvm-svn: 178565
* The 3rd test in shrink_to_fit.pass.cpp can't possibly pass if exceptions are ↵Howard Hinnant2013-03-291-0/+2
| | | | | | disabled, so #ifdef'ing out the test. llvm-svn: 178350
* Revert r178075, "Tighten up the iterator requirements ...", it breaks LLVMDaniel Dunbar2013-03-271-7/+0
| | | | | | bootstrap with libc++. llvm-svn: 178116
* Tighten up the iterator requirements for the vector member templates. This ↵Howard Hinnant2013-03-261-0/+7
| | | | | | is especially important for the constructors so that is_constructible<vector<T>, I, I> gives the right answer when T can not be constructed from *I. Test case included for this latter point. llvm-svn: 178075
* Another vector debug mode test, and a static test on Allocator::value_type. ↵Howard Hinnant2013-03-261-0/+8
| | | | | | This partially addresses http://llvm.org/bugs/show_bug.cgi?id=15576. llvm-svn: 178064
* More vector debug tests.Howard Hinnant2013-03-266-0/+103
| | | | llvm-svn: 178033
* Simply debug mode tests per Dmitri Gribenko's suggestion.Howard Hinnant2013-03-2621-148/+21
| | | | llvm-svn: 178026
* Need one more swap overload for swapping two lvalue vector<bool>::reference's.Howard Hinnant2013-03-261-0/+10
| | | | llvm-svn: 178016
* Added debug tests for indexing, pop_back and both forms of erase. Added an ↵Howard Hinnant2013-03-259-0/+405
| | | | | | improved error message for erasing a single element with end(). llvm-svn: 177929
* Remove some erroneous code I was using to debug debug mode.Howard Hinnant2013-03-2512-24/+0
| | | | llvm-svn: 177908
* Debug mode tests for vector::front and back.Howard Hinnant2013-03-254-0/+192
| | | | llvm-svn: 177904
* More vector::iterator debug mode tests. Run by adding to OPTIONS ↵Howard Hinnant2013-03-258-7/+346
| | | | | | -D_LIBCPP_DEBUG2=1. llvm-svn: 177897
* Debug mode: learning to crawl. I need to set up some tests that actually ↵Howard Hinnant2013-03-251-0/+53
| | | | | | test that the debug mode is working, but that won't cause problems when debug mode isn't on. This is my first prototype of such a test. It should call std::terminate() because it's comparing iterators from different containers. And std::terminate() is rigged up to exit normally. If debug mode fails, and doesn't call terminate, then the program asserts. The test is a no-op if _LIBCPP_DEBUG2 is not defined or is defined to be 0. llvm-svn: 177892
* Fix exception safety bug in vector::push_backHoward Hinnant2013-01-116-0/+438
| | | | llvm-svn: 172250
* Move common header files into a 'support' directory; make 'testit' include ↵Marshall Clow2013-01-0520-20/+20
| | | | | | -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
* Removed several more different 'iterators.h' files in libcxx/testMarshall Clow2013-01-0320-20/+20
| | | | llvm-svn: 171452
* Added static_assert to std::get<N>(std::array) calls to catch "out of ↵Marshall Clow2012-12-181-0/+25
| | | | | | bounds" calls llvm-svn: 170435
* constexpr applied to <array>.Howard Hinnant2012-07-201-0/+14
| | | | llvm-svn: 160564
* Add test for self-referencing emplace test.Howard Hinnant2012-07-091-0/+34
| | | | llvm-svn: 159921
* Another installment on debug mode. This addresses list. However this ↵Howard Hinnant2011-09-271-0/+3
| | | | | | should be considered a temporary state. The API of the debug database and how vector and list use it, is unsatisfactory at the moment. It is both inefficient and overly verbose. I wanted to get this functionality checked in though. In the next day or so I'll refactor what is there in an attempt to streamline things. llvm-svn: 140660
* The vector test suite now passes for no-debug, debug-lite and debug-regularHoward Hinnant2011-09-161-0/+3
| | | | llvm-svn: 139930
* Fixed PR10574: http://llvm.org/bugs/show_bug.cgi?id=10574Howard Hinnant2011-08-1225-50/+50
| | | | llvm-svn: 137522
* noexcept for <vector>. This also includes installing move_if_noexcept() ↵Howard Hinnant2011-06-0310-0/+523
| | | | | | into vector. llvm-svn: 132577
* noexcept for <list>.Howard Hinnant2011-06-035-0/+264
| | | | llvm-svn: 132562
* noexcept for <forward_list>.Howard Hinnant2011-06-036-0/+268
| | | | llvm-svn: 132553
* After sleeping on it I've decided that all special members that can be ↵Howard Hinnant2011-06-032-0/+98
| | | | | | noexcept, should be declared so. The client has the traits to detect and branch on this information, and it is often an important optimization. Give deque() a noexcept. Add test for deque default constructor and deque destructor. llvm-svn: 132549
* Add noexcept tests for deque.Howard Hinnant2011-06-033-0/+162
| | | | llvm-svn: 132523
* Bug 9096 - list::iterator not default constructibleHoward Hinnant2011-01-286-1/+238
| | | | llvm-svn: 124508
* LWG 1191Howard Hinnant2010-11-171-0/+29
| | | | llvm-svn: 119545
* license changeHoward Hinnant2010-11-16239-478/+478
| | | | llvm-svn: 119395
* Fix two test bugsHoward Hinnant2010-10-141-2/+2
| | | | llvm-svn: 116515
* sync with N3126Howard Hinnant2010-09-0583-3100/+0
| | | | llvm-svn: 113101
* Changed __config to react to all of clang's currently documented has_feature ↵Howard Hinnant2010-09-0497-237/+237
| | | | | | flags, and renamed _LIBCPP_MOVE to _LIBCPP_HAS_NO_RVALUE_REFERENCES to be more consistent with the rest of the libc++'s flags, and with clang's nomenclature. llvm-svn: 113086
* Fixing whitespace problemsHoward Hinnant2010-08-22130-186/+179
| | | | llvm-svn: 111755
* US 117Howard Hinnant2010-08-212-13/+26
| | | | llvm-svn: 111745
* LWG 1278Howard Hinnant2010-08-193-6/+6
| | | | llvm-svn: 111532
* Wiped out some non-ascii characters that snuck into the copyright.Howard Hinnant2010-05-11322-322/+322
| | | | llvm-svn: 103516
* libcxx initial importHoward Hinnant2010-05-11322-0/+15549
llvm-svn: 103490
OpenPOWER on IntegriCloud