Fixing whitespace problems
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111753 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
16e6e1d72f
commit
eb564e76cc
@ -56,7 +56,7 @@ test1()
|
|||||||
assert(*ib[i] == i);
|
assert(*ib[i] == i);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -130,5 +130,5 @@ int main()
|
|||||||
test1<std::unique_ptr<int>*, bidirectional_iterator<std::unique_ptr<int>*> >();
|
test1<std::unique_ptr<int>*, bidirectional_iterator<std::unique_ptr<int>*> >();
|
||||||
test1<std::unique_ptr<int>*, random_access_iterator<std::unique_ptr<int>*> >();
|
test1<std::unique_ptr<int>*, random_access_iterator<std::unique_ptr<int>*> >();
|
||||||
test1<std::unique_ptr<int>*, std::unique_ptr<int>*>();
|
test1<std::unique_ptr<int>*, std::unique_ptr<int>*>();
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ test1()
|
|||||||
assert(*ib[i] == i);
|
assert(*ib[i] == i);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -84,5 +84,5 @@ int main()
|
|||||||
test1<std::unique_ptr<int>*, bidirectional_iterator<std::unique_ptr<int>*> >();
|
test1<std::unique_ptr<int>*, bidirectional_iterator<std::unique_ptr<int>*> >();
|
||||||
test1<std::unique_ptr<int>*, random_access_iterator<std::unique_ptr<int>*> >();
|
test1<std::unique_ptr<int>*, random_access_iterator<std::unique_ptr<int>*> >();
|
||||||
test1<std::unique_ptr<int>*, std::unique_ptr<int>*>();
|
test1<std::unique_ptr<int>*, std::unique_ptr<int>*>();
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
// bool
|
// bool
|
||||||
// is_partitioned(InputIterator first, InputIterator last, Predicate pred);
|
// is_partitioned(InputIterator first, InputIterator last, Predicate pred);
|
||||||
|
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
@ -300,7 +300,7 @@ test1()
|
|||||||
Iter r = std::stable_partition(Iter(array), Iter(array+size), is_null());
|
Iter r = std::stable_partition(Iter(array), Iter(array+size), is_null());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
@ -63,7 +63,7 @@ test1()
|
|||||||
assert(*ia[5] == 4);
|
assert(*ia[5] == 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -79,5 +79,5 @@ int main()
|
|||||||
test1<random_access_iterator<std::unique_ptr<int>*> >();
|
test1<random_access_iterator<std::unique_ptr<int>*> >();
|
||||||
test1<std::unique_ptr<int>*>();
|
test1<std::unique_ptr<int>*>();
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ test1()
|
|||||||
assert(*ia[5] == 4);
|
assert(*ia[5] == 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -88,5 +88,5 @@ int main()
|
|||||||
test1<random_access_iterator<std::unique_ptr<int>*> >();
|
test1<random_access_iterator<std::unique_ptr<int>*> >();
|
||||||
test1<std::unique_ptr<int>*>();
|
test1<std::unique_ptr<int>*>();
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -419,7 +419,7 @@ test1()
|
|||||||
assert(*ig[5] == 2);
|
assert(*ig[5] == 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -435,5 +435,5 @@ int main()
|
|||||||
test1<random_access_iterator<std::unique_ptr<int>*> >();
|
test1<random_access_iterator<std::unique_ptr<int>*> >();
|
||||||
test1<std::unique_ptr<int>*>();
|
test1<std::unique_ptr<int>*>();
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ test1()
|
|||||||
assert(*j[2] == 3);
|
assert(*j[2] == 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -106,5 +106,5 @@ int main()
|
|||||||
test1<std::unique_ptr<int>*, random_access_iterator<std::unique_ptr<int>*> >();
|
test1<std::unique_ptr<int>*, random_access_iterator<std::unique_ptr<int>*> >();
|
||||||
test1<std::unique_ptr<int>*, std::unique_ptr<int>*>();
|
test1<std::unique_ptr<int>*, std::unique_ptr<int>*>();
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,7 @@ test1()
|
|||||||
assert(*ii[2] == 2);
|
assert(*ii[2] == 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -185,5 +185,5 @@ int main()
|
|||||||
test1<random_access_iterator<Ptr*> >();
|
test1<random_access_iterator<Ptr*> >();
|
||||||
test1<Ptr*>();
|
test1<Ptr*>();
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,7 @@ test1()
|
|||||||
assert(count_equal::count == si-1);
|
assert(count_equal::count == si-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -227,5 +227,5 @@ int main()
|
|||||||
test1<random_access_iterator<Ptr*> >();
|
test1<random_access_iterator<Ptr*> >();
|
||||||
test1<Ptr*>();
|
test1<Ptr*>();
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
void test()
|
void test()
|
||||||
{
|
{
|
||||||
int i1[] = {0, 0};
|
int i1[] = {0, 0};
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
void test()
|
void test()
|
||||||
{
|
{
|
||||||
int i1[] = {0, 0};
|
int i1[] = {0, 0};
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
void test()
|
void test()
|
||||||
{
|
{
|
||||||
int i1[] = {0, 0};
|
int i1[] = {0, 0};
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
void test(unsigned N)
|
void test(unsigned N)
|
||||||
{
|
{
|
||||||
int* ia = new int [N];
|
int* ia = new int [N];
|
||||||
|
@ -27,7 +27,7 @@ struct indirect_less
|
|||||||
{return *x < *y;}
|
{return *x < *y;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
void test(unsigned N)
|
void test(unsigned N)
|
||||||
{
|
{
|
||||||
@ -60,5 +60,5 @@ int main()
|
|||||||
assert(std::is_heap(ia, ia+N, indirect_less()));
|
assert(std::is_heap(ia, ia+N, indirect_less()));
|
||||||
delete [] ia;
|
delete [] ia;
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
void test(unsigned N)
|
void test(unsigned N)
|
||||||
{
|
{
|
||||||
int* ia = new int [N];
|
int* ia = new int [N];
|
||||||
|
@ -27,7 +27,7 @@ struct indirect_less
|
|||||||
{return *x < *y;}
|
{return *x < *y;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
void test(unsigned N)
|
void test(unsigned N)
|
||||||
{
|
{
|
||||||
@ -64,5 +64,5 @@ int main()
|
|||||||
}
|
}
|
||||||
delete [] ia;
|
delete [] ia;
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
void test(unsigned N)
|
void test(unsigned N)
|
||||||
{
|
{
|
||||||
int* ia = new int [N];
|
int* ia = new int [N];
|
||||||
|
@ -28,7 +28,7 @@ struct indirect_less
|
|||||||
{return *x < *y;}
|
{return *x < *y;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
void test(unsigned N)
|
void test(unsigned N)
|
||||||
{
|
{
|
||||||
@ -62,5 +62,5 @@ int main()
|
|||||||
}
|
}
|
||||||
delete [] ia;
|
delete [] ia;
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
void test(unsigned N)
|
void test(unsigned N)
|
||||||
{
|
{
|
||||||
int* ia = new int [N];
|
int* ia = new int [N];
|
||||||
|
@ -27,7 +27,7 @@ struct indirect_less
|
|||||||
{return *x < *y;}
|
{return *x < *y;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
void test(unsigned N)
|
void test(unsigned N)
|
||||||
{
|
{
|
||||||
@ -62,5 +62,5 @@ int main()
|
|||||||
assert(std::is_sorted(ia, ia+N, indirect_less()));
|
assert(std::is_sorted(ia, ia+N, indirect_less()));
|
||||||
delete [] ia;
|
delete [] ia;
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@ struct indirect_less
|
|||||||
{return *x < *y;}
|
{return *x < *y;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
#include "../../iterators.h"
|
#include "../../iterators.h"
|
||||||
|
|
||||||
@ -108,5 +108,5 @@ int main()
|
|||||||
}
|
}
|
||||||
delete [] ia;
|
delete [] ia;
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -31,5 +31,5 @@ int main()
|
|||||||
assert(i == 3);
|
assert(i == 3);
|
||||||
i = std::max({1, 3, 2});
|
i = std::max({1, 3, 2});
|
||||||
assert(i == 3);
|
assert(i == 3);
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -32,5 +32,5 @@ int main()
|
|||||||
assert(i == 1);
|
assert(i == 1);
|
||||||
i = std::max({1, 3, 2}, std::greater<int>());
|
i = std::max({1, 3, 2}, std::greater<int>());
|
||||||
assert(i == 1);
|
assert(i == 1);
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -31,5 +31,5 @@ int main()
|
|||||||
assert(i == 1);
|
assert(i == 1);
|
||||||
i = std::min({1, 3, 2});
|
i = std::min({1, 3, 2});
|
||||||
assert(i == 1);
|
assert(i == 1);
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -32,5 +32,5 @@ int main()
|
|||||||
assert(i == 3);
|
assert(i == 3);
|
||||||
i = std::min({1, 3, 2}, std::greater<int>());
|
i = std::min({1, 3, 2}, std::greater<int>());
|
||||||
assert(i == 3);
|
assert(i == 3);
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -25,5 +25,5 @@ int main()
|
|||||||
assert((std::minmax({2, 3, 1}) == std::pair<int, int>(1, 3)));
|
assert((std::minmax({2, 3, 1}) == std::pair<int, int>(1, 3)));
|
||||||
assert((std::minmax({3, 1, 2}) == std::pair<int, int>(1, 3)));
|
assert((std::minmax({3, 1, 2}) == std::pair<int, int>(1, 3)));
|
||||||
assert((std::minmax({3, 2, 1}) == std::pair<int, int>(1, 3)));
|
assert((std::minmax({3, 2, 1}) == std::pair<int, int>(1, 3)));
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -26,5 +26,5 @@ int main()
|
|||||||
assert((std::minmax({2, 3, 1}, std::greater<int>()) == std::pair<int, int>(3, 1)));
|
assert((std::minmax({2, 3, 1}, std::greater<int>()) == std::pair<int, int>(3, 1)));
|
||||||
assert((std::minmax({3, 1, 2}, std::greater<int>()) == std::pair<int, int>(3, 1)));
|
assert((std::minmax({3, 1, 2}, std::greater<int>()) == std::pair<int, int>(3, 1)));
|
||||||
assert((std::minmax({3, 2, 1}, std::greater<int>()) == std::pair<int, int>(3, 1)));
|
assert((std::minmax({3, 2, 1}, std::greater<int>()) == std::pair<int, int>(3, 1)));
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ struct indirect_less
|
|||||||
{return *x < *y;}
|
{return *x < *y;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
void
|
void
|
||||||
test_one(unsigned N, unsigned M)
|
test_one(unsigned N, unsigned M)
|
||||||
@ -81,5 +81,5 @@ int main()
|
|||||||
std::nth_element(v.begin(), v.begin() + v.size()/2, v.end(), indirect_less());
|
std::nth_element(v.begin(), v.begin() + v.size()/2, v.end(), indirect_less());
|
||||||
assert(*v[v.size()/2] == v.size()/2);
|
assert(*v[v.size()/2] == v.size()/2);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,6 @@ test()
|
|||||||
assert(std::includes(Iter1(ia), Iter1(ia+sa), Iter2(ib), Iter2(ib+sb)));
|
assert(std::includes(Iter1(ia), Iter1(ia+sa), Iter2(ib), Iter2(ib+sb)));
|
||||||
assert(!std::includes(Iter1(ib), Iter1(ib+sb), Iter2(ia), Iter2(ia+sa)));
|
assert(!std::includes(Iter1(ib), Iter1(ib+sb), Iter2(ia), Iter2(ia+sa)));
|
||||||
|
|
||||||
|
|
||||||
assert(std::includes(Iter1(ia), Iter1(ia+2), Iter2(ic), Iter2(ic+2)));
|
assert(std::includes(Iter1(ia), Iter1(ia+2), Iter2(ic), Iter2(ic+2)));
|
||||||
assert(!std::includes(Iter1(ia), Iter1(ia+2), Iter2(ib), Iter2(ib+2)));
|
assert(!std::includes(Iter1(ia), Iter1(ia+2), Iter2(ib), Iter2(ib+2)));
|
||||||
|
|
||||||
|
@ -42,7 +42,6 @@ test()
|
|||||||
assert(std::includes(Iter1(ia), Iter1(ia+sa), Iter2(ib), Iter2(ib+sb), std::less<int>()));
|
assert(std::includes(Iter1(ia), Iter1(ia+sa), Iter2(ib), Iter2(ib+sb), std::less<int>()));
|
||||||
assert(!std::includes(Iter1(ib), Iter1(ib+sb), Iter2(ia), Iter2(ia+sa), std::less<int>()));
|
assert(!std::includes(Iter1(ib), Iter1(ib+sb), Iter2(ia), Iter2(ia+sa), std::less<int>()));
|
||||||
|
|
||||||
|
|
||||||
assert(std::includes(Iter1(ia), Iter1(ia+2), Iter2(ic), Iter2(ic+2), std::less<int>()));
|
assert(std::includes(Iter1(ia), Iter1(ia+2), Iter2(ic), Iter2(ic+2), std::less<int>()));
|
||||||
assert(!std::includes(Iter1(ia), Iter1(ia+2), Iter2(ib), Iter2(ib+2), std::less<int>()));
|
assert(!std::includes(Iter1(ia), Iter1(ia+2), Iter2(ib), Iter2(ib+2), std::less<int>()));
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ struct indirect_less
|
|||||||
{return *x < *y;}
|
{return *x < *y;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
void
|
void
|
||||||
test_larger_sorts(unsigned N, unsigned M)
|
test_larger_sorts(unsigned N, unsigned M)
|
||||||
@ -83,5 +83,5 @@ int main()
|
|||||||
for (int i = 0; i < v.size()/2; ++i)
|
for (int i = 0; i < v.size()/2; ++i)
|
||||||
assert(*v[i] == i);
|
assert(*v[i] == i);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -29,8 +29,7 @@ struct indirect_less
|
|||||||
{return *x < *y;}
|
{return *x < *y;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
@ -54,5 +53,5 @@ int main()
|
|||||||
assert(*v[1] == 1);
|
assert(*v[1] == 1);
|
||||||
assert(*v[2] == 2);
|
assert(*v[2] == 2);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ struct indirect_less
|
|||||||
{return *x < *y;}
|
{return *x < *y;}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
|
|
||||||
struct first_only
|
struct first_only
|
||||||
{
|
{
|
||||||
@ -79,5 +79,5 @@ int main()
|
|||||||
assert(*v[1] == 1);
|
assert(*v[1] == 1);
|
||||||
assert(*v[2] == 2);
|
assert(*v[2] == 2);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // _LIBCPP_MOVE
|
||||||
}
|
}
|
||||||
|
@ -311,4 +311,4 @@ base(Iter i)
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif // ITERATORS_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user