Rename _LIBCPP_DEBUG2 to _LIBCPP_DEBUG.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@189140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2013-08-23 20:10:18 +00:00
parent 5d5f9f9786
commit 5e57142c59
162 changed files with 292 additions and 292 deletions

View File

@@ -11,7 +11,7 @@
// Call back() on empty container.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call back() on empty const container.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call front() on empty const container.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call front() on empty container.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Decrement iterator prior to begin.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Increment iterator past end.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Dereference non-dereferenceable iterator.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Operations on "NULL" iterators
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) do { if (!x) throw 1; } while(0)

View File

@@ -61,7 +61,7 @@ int main()
assert(l2.get_allocator() == lo.get_allocator());
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int> l1 = {1, 2, 3};
std::list<int>::iterator i = l1.begin();

View File

@@ -11,7 +11,7 @@
// template <class... Args> void emplace(const_iterator p, Args&&... args);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -51,7 +51,7 @@ int main()
assert(c.back().geti() == 3);
assert(c.back().getd() == 4.5);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<A> c1;
std::list<A> c2;
@@ -75,7 +75,7 @@ int main()
assert(c.back().geti() == 3);
assert(c.back().getd() == 4.5);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<A, min_allocator<A>> c1;
std::list<A, min_allocator<A>> c2;

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with end()
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with first iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with second iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with both iterators from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with a bad range
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -12,7 +12,7 @@
// template <InputIterator Iter>
// iterator insert(const_iterator position, Iter first, Iter last);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -99,7 +99,7 @@ int main()
assert(*i == 3);
}
throw_next = 0xFFFF;
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int> v(100);
std::list<int> v2(100);
@@ -167,7 +167,7 @@ int main()
++i;
assert(*i == 3);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
throw_next = 0xFFFF;
std::list<int, min_allocator<int>> v(100);

View File

@@ -11,7 +11,7 @@
// iterator insert(const_iterator position, value_type&& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -35,7 +35,7 @@ int main()
assert(l1.back() == MoveOnly(1));
}
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int> v1(3);
std::list<int> v2(3);
@@ -56,7 +56,7 @@ int main()
assert(l1.back() == MoveOnly(1));
}
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int, min_allocator<int>> v1(3);
std::list<int, min_allocator<int>> v2(3);

View File

@@ -11,7 +11,7 @@
// iterator insert(const_iterator position, size_type n, const value_type& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -62,7 +62,7 @@ int main()
assert(save_count == count);
assert(l1 == std::list<int>(a2, a2+8));
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int> c1(100);
std::list<int> c2;
@@ -92,7 +92,7 @@ int main()
assert(save_count == count);
assert((l1 == std::list<int, min_allocator<int>>(a2, a2+8)));
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int, min_allocator<int>> c1(100);
std::list<int, min_allocator<int>> c2;

View File

@@ -11,7 +11,7 @@
// iterator insert(const_iterator position, const value_type& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -64,7 +64,7 @@ int main()
assert(save_count == count);
assert(l1 == std::list<int>(a2, a2+4));
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int> v1(3);
std::list<int> v2(3);
@@ -97,7 +97,7 @@ int main()
assert(save_count == count);
assert((l1 == std::list<int, min_allocator<int>>(a2, a2+4)));
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int, min_allocator<int>> v1(3);
std::list<int, min_allocator<int>> v2(3);

View File

@@ -11,7 +11,7 @@
// void pop_back();
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -31,7 +31,7 @@ int main()
assert(c == std::list<int>(a, a+1));
c.pop_back();
assert(c.empty());
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
c.pop_back();
assert(false);
#endif
@@ -46,7 +46,7 @@ int main()
assert((c == std::list<int, min_allocator<int>>(a, a+1)));
c.pop_back();
assert(c.empty());
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
c.pop_back();
assert(false);
#endif

View File

@@ -11,7 +11,7 @@
// void splice(const_iterator position, list& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -403,7 +403,7 @@ int main()
++i;
assert(*i == 6);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int> v1(3);
std::list<int> v2(3);
@@ -791,7 +791,7 @@ int main()
++i;
assert(*i == 6);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int, min_allocator<int>> v1(3);
std::list<int, min_allocator<int>> v2(3);

View File

@@ -11,7 +11,7 @@
// void splice(const_iterator position, list<T,Allocator>& x, iterator i);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -180,7 +180,7 @@ int main()
++i;
assert(*i == 2);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int> v1(3);
std::list<int> v2(3);
@@ -345,7 +345,7 @@ int main()
++i;
assert(*i == 2);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int, min_allocator<int>> v1(3);
std::list<int, min_allocator<int>> v2(3);

View File

@@ -11,7 +11,7 @@
// void splice(const_iterator position, list& x, iterator first, iterator last);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -120,7 +120,7 @@ int main()
i = l2.begin();
assert(*i == 4);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int> v1(3);
std::list<int> v2(3);
@@ -225,7 +225,7 @@ int main()
i = l2.begin();
assert(*i == 4);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::list<int, min_allocator<int>> v1(3);
std::list<int, min_allocator<int>> v2(3);

View File

@@ -12,7 +12,7 @@
// template <class T, class Alloc>
// void swap(list<T,Alloc>& x, list<T,Alloc>& y);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -24,7 +24,7 @@
int main()
{
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
int a1[] = {1, 3, 7, 9, 10};
int a2[] = {0, 2, 4, 5, 6, 8, 11};

View File

@@ -11,7 +11,7 @@
// Call back() on empty container.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call back() on empty const container.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call front() on empty const container.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Index const vector out of bounds.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call front() on empty container.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Index vector out of bounds.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Compare iterators from different containers with <.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Subtract iterators from different containers.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Index iterator out of bounds.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Add to iterator out of bounds.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Decrement iterator prior to begin.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Increment iterator past end.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Dereference non-dereferenceable iterator.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// template <class... Args> iterator emplace(const_iterator pos, Args&&... args);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -107,7 +107,7 @@ int main()
assert(c.back().geti() == 3);
assert(c.back().getd() == 4.5);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<A> c1;
std::vector<A> c2;
@@ -140,7 +140,7 @@ int main()
assert(c.back().geti() == 3);
assert(c.back().getd() == 4.5);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<A, min_allocator<A>> c1;
std::vector<A, min_allocator<A>> c2;

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with end()
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with first iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with second iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with both iterators from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with a bad range
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -12,7 +12,7 @@
// template <class Iter>
// iterator insert(const_iterator position, Iter first, Iter last);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -88,7 +88,7 @@ int main()
for (; j < 105; ++j)
assert(v[j] == 0);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<int> v(100);
std::vector<int> v2(100);
@@ -132,7 +132,7 @@ int main()
for (; j < 105; ++j)
assert(v[j] == 0);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<int, min_allocator<int>> v(100);
std::vector<int, min_allocator<int>> v2(100);

View File

@@ -11,7 +11,7 @@
// iterator insert(const_iterator position, value_type&& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -48,7 +48,7 @@ int main()
for (++j; j < 101; ++j)
assert(v[j] == MoveOnly());
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<int> v1(3);
std::vector<int> v2(3);
@@ -69,7 +69,7 @@ int main()
for (++j; j < 101; ++j)
assert(v[j] == MoveOnly());
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<int, min_allocator<int>> v1(3);
std::vector<int, min_allocator<int>> v2(3);

View File

@@ -11,7 +11,7 @@
// iterator insert(const_iterator position, size_type n, const value_type& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -48,7 +48,7 @@ int main()
for (++j; j < 105; ++j)
assert(v[j] == 0);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<int> c1(100);
std::vector<int> c2;
@@ -83,7 +83,7 @@ int main()
for (++j; j < 105; ++j)
assert(v[j] == 0);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<int, min_allocator<int>> c1(100);
std::vector<int, min_allocator<int>> c2;

View File

@@ -11,7 +11,7 @@
// iterator insert(const_iterator position, const value_type& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -46,7 +46,7 @@ int main()
for (++j; j < 101; ++j)
assert(v[j] == 0);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<int> v1(3);
std::vector<int> v2(3);
@@ -68,7 +68,7 @@ int main()
for (++j; j < 101; ++j)
assert(v[j] == 0);
}
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::vector<int, min_allocator<int>> v1(3);
std::vector<int, min_allocator<int>> v2(3);

View File

@@ -11,7 +11,7 @@
// void pop_back();
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -20,7 +20,7 @@
#include "../../../stack_allocator.h"
#include "../../../min_allocator.h"
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#include <cstdlib>
#include <exception>
@@ -34,7 +34,7 @@ int main()
assert(c.size() == 1);
c.pop_back();
assert(c.size() == 0);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
c.pop_back();
assert(false);
#endif
@@ -46,7 +46,7 @@ int main()
assert(c.size() == 1);
c.pop_back();
assert(c.size() == 0);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
c.pop_back();
assert(false);
#endif

View File

@@ -12,7 +12,7 @@
// template <class T, class Alloc>
// void swap(vector<T,Alloc>& x, vector<T,Alloc>& y);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -23,7 +23,7 @@
int main()
{
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
int a1[] = {1, 3, 7, 9, 10};
int a2[] = {0, 2, 4, 5, 6, 8, 11};

View File

@@ -15,7 +15,7 @@
// size_type bucket(const key_type& __k) const;
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif

View File

@@ -15,7 +15,7 @@
// size_type bucket_size(size_type n) const
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif

View File

@@ -11,7 +11,7 @@
// Increment iterator past end.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Dereference non-dereferenceable iterator.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Increment local_iterator past end.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Dereference non-dereferenceable iterator.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -16,7 +16,7 @@
// float max_load_factor() const;
// void max_load_factor(float mlf);
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif

View File

@@ -213,7 +213,7 @@ int main()
assert(c0.size() == 0);
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::unordered_map<int, int> s1 = {{1, 1}, {2, 2}, {3, 3}};
std::unordered_map<int, int>::iterator i = s1.begin();

View File

@@ -184,7 +184,7 @@ int main()
assert(c0.empty());
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::unordered_map<int, int> s1 = {{1, 1}, {2, 2}, {3, 3}};
std::unordered_map<int, int>::iterator i = s1.begin();

View File

@@ -15,7 +15,7 @@
// void swap(unordered_map& x, unordered_map& y);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -24,7 +24,7 @@
int main()
{
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::pair<int, int> P;
P a1[] = {P(1, 1), P(3, 3), P(7, 7), P(9, 9), P(10, 10)};

View File

@@ -16,7 +16,7 @@
// template <class... Args>
// iterator emplace_hint(const_iterator p, Args&&... args);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -76,7 +76,7 @@ int main()
assert(r->second == Emplaceable(6, 7));
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::unordered_map<int, Emplaceable> C;
typedef C::iterator R;

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with end()
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with first iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with second iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with both iterators from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with a bad range
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -15,7 +15,7 @@
// iterator insert(const_iterator p, const value_type& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -81,7 +81,7 @@ int main()
assert(r->second == 4);
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::unordered_map<double, int> C;
typedef C::iterator R;

View File

@@ -17,7 +17,7 @@
// class = typename enable_if<is_convertible<P, value_type>::value>::type>
// iterator insert(const_iterator p, P&& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -140,7 +140,7 @@ int main()
assert(r->second == 4);
}
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::unordered_map<double, int> C;
typedef C::iterator R;

View File

@@ -15,7 +15,7 @@
// size_type bucket(const key_type& __k) const;
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif

View File

@@ -15,7 +15,7 @@
// size_type bucket_size(size_type n) const
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif

View File

@@ -11,7 +11,7 @@
// Increment iterator past end.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Dereference non-dereferenceable iterator.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Increment local_iterator past end.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Dereference non-dereferenceable iterator.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -16,7 +16,7 @@
// float max_load_factor() const;
// void max_load_factor(float mlf);
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif

View File

@@ -290,7 +290,7 @@ int main()
assert(c.max_load_factor() == 1);
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::unordered_multimap<int, int> s1 = {{1, 1}, {2, 2}, {3, 3}};
std::unordered_multimap<int, int>::iterator i = s1.begin();

View File

@@ -228,7 +228,7 @@ int main()
assert(c0.empty());
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
std::unordered_multimap<int, int> s1 = {{1, 1}, {2, 2}, {3, 3}};
std::unordered_multimap<int, int>::iterator i = s1.begin();

View File

@@ -16,7 +16,7 @@
// template <class... Args>
// iterator emplace_hint(const_iterator p, Args&&... args);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -92,7 +92,7 @@ int main()
assert(r->second == Emplaceable(5, 6));
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::unordered_multimap<int, Emplaceable> C;
typedef C::iterator R;

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with end()
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with first iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with second iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with both iterators from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with a bad range
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -15,7 +15,7 @@
// iterator insert(const_iterator p, const value_type& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -81,7 +81,7 @@ int main()
assert(r->second == 4);
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::unordered_multimap<double, int> C;
typedef C::iterator R;

View File

@@ -17,7 +17,7 @@
// class = typename enable_if<is_convertible<P, value_type>::value>::type>
// iterator insert(const_iterator p, P&& x);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -140,7 +140,7 @@ int main()
assert(r->second == 4);
}
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::unordered_multimap<double, int> C;
typedef C::iterator R;

View File

@@ -15,7 +15,7 @@
// void swap(unordered_multimap& x, unordered_multimap& y);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -24,7 +24,7 @@
int main()
{
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::pair<int, int> P;
P a1[] = {P(1, 1), P(3, 3), P(7, 7), P(9, 9), P(10, 10)};

View File

@@ -15,7 +15,7 @@
// size_type bucket(const key_type& __k) const;
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif

View File

@@ -15,7 +15,7 @@
// size_type bucket_size(size_type n) const
#ifdef _LIBCPP_DEBUG2
#ifdef _LIBCPP_DEBUG
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif

View File

@@ -11,7 +11,7 @@
// Increment iterator past end.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Dereference non-dereferenceable iterator.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Increment local_iterator past end.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Dereference non-dereferenceable iterator.
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -16,7 +16,7 @@
// template <class... Args>
// iterator emplace_hint(const_iterator p, Args&&... args);
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
#endif
@@ -66,7 +66,7 @@ int main()
assert(*r == Emplaceable(5, 6));
}
#endif
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
{
typedef std::unordered_multiset<Emplaceable> C;
typedef C::iterator R;

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with end()
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator position) with iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with first iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

View File

@@ -11,7 +11,7 @@
// Call erase(const_iterator first, const_iterator last); with second iterator from another container
#if _LIBCPP_DEBUG2 >= 1
#if _LIBCPP_DEBUG >= 1
#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))

Some files were not shown because too many files have changed in this diff Show More