1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template <class T, class Alloc>
13 // void swap(vector<T,Alloc>& x, vector<T,Alloc>& y);
15 #if _LIBCPP_DEBUG >= 1
16 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
22 #include "min_allocator.h"
26 #if _LIBCPP_DEBUG >= 1
28 int a1[] = {1, 3, 7, 9, 10};
29 int a2[] = {0, 2, 4, 5, 6, 8, 11};
30 std::vector<int> c1(a1, a1+sizeof(a1)/sizeof(a1[0]));
31 std::vector<int> c2(a2, a2+sizeof(a2)/sizeof(a2[0]));
32 std::vector<int>::iterator i1 = c1.begin();
33 std::vector<int>::iterator i2 = c2.begin();
40 #if TEST_STD_VER >= 11
42 int a1[] = {1, 3, 7, 9, 10};
43 int a2[] = {0, 2, 4, 5, 6, 8, 11};
44 std::vector<int, min_allocator<int>> c1(a1, a1+sizeof(a1)/sizeof(a1[0]));
45 std::vector<int, min_allocator<int>> c2(a2, a2+sizeof(a2)/sizeof(a2[0]));
46 std::vector<int, min_allocator<int>>::iterator i1 = c1.begin();
47 std::vector<int, min_allocator<int>>::iterator i2 = c2.begin();