|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| | reallocation has to happen
llvm-svn: 233641 | 
| | 
| 
| 
| 
| 
| | - vector::assign where a reallocation was not required had no tests. Add some
llvm-svn: 233557 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | of !defined(_LIBCPP_HAS_NO_VARIADICS) block.
Summary:
There is no reason to guard `tuple_size`, `tuple_element` and `get<I>(...)` for pair and array inside of `<__tuple>` so that they are only available when we have variadic templates.
This requires there be redundant declarations and definitions. It also makes it easy to get things wrong.
For example the following code should compile (and does in c++11).
```
#define _LIBCPP_HAS_NO_VARIADICS
#include <array>
int main()
{
  static_assert((std::tuple_size<std::array<int, 10> volatile>::value == 10), "");
}
```
This patch lifts the non-variadic parts of `tuple_size`, `tuple_types`, and `get<I>(...)` to the top of `<__tuple>` where they don't require variadic templates. This patch also removes `<__tuple_03>` because there is no longer a need for it.
Reviewers: danalbert, K-ballo, mclow.lists
Reviewed By: mclow.lists
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D7774
llvm-svn: 232492 | 
| | 
| 
| 
| | llvm-svn: 231841 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | Summary: Fix suggested by @mclow.lists on D8109. Store the size of the un-poisoned vector upon construction instead of calculating it later.
Reviewers: titus, mclow.lists, kcc, EricWF
Reviewed By: EricWF
Subscribers: mclow.lists, cfe-commits
Differential Revision: http://reviews.llvm.org/D8172
llvm-svn: 231729 | 
| | 
| 
| 
| | llvm-svn: 231704 | 
| | 
| 
| 
| 
| 
| | bug because there's more work to do here
llvm-svn: 231672 | 
| | 
| 
| 
| 
| 
| | part of the standard any more.
llvm-svn: 231311 | 
| | 
| 
| 
| 
| 
| | Patch from eugenis
llvm-svn: 231119 | 
| | 
| 
| 
| | llvm-svn: 228711 | 
| | 
| 
| 
| 
| 
| | -pedantic-errors
llvm-svn: 228706 | 
| | 
| 
| 
| 
| 
| | support/, remove the other, and update all the tests that included them. No functionality change.
llvm-svn: 227370 | 
| | 
| 
| 
| 
| 
| | passing an allocator that compares different, we were not calling the destructor of the elements in the moved-from container.
llvm-svn: 227359 | 
| | 
| 
| 
| 
| 
| | References PR#17980
llvm-svn: 227131 | 
| | 
| 
| 
| 
| 
| | iterators. Update tests to exercise this case.
llvm-svn: 226847 | 
| | 
| 
| 
| 
| 
| | match what was in the standard. Added these includes to the tests. No changes to the library or test results.
llvm-svn: 225541 | 
| | 
| 
| 
| 
| 
| | and the tests test for that. STL @ MS pointed out that the standard doesn't requie these objects to derive from unary_function, and so the tests should not require that either. Change the tests to check for the embedded typedefs - which ARE required. No change to the library.
llvm-svn: 225403 | 
|  | llvm-svn: 224658 |