Fixing whitespace problems
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@111767 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,4 +23,4 @@ public:
|
||||
|
||||
int DefaultOnly::count = 0;
|
||||
|
||||
#endif
|
||||
#endif // DEFAULTONLY_H
|
||||
|
@@ -21,8 +21,8 @@ public:
|
||||
|
||||
int get() const {return data_;}
|
||||
|
||||
bool operator==(const MoveOnly& x) const {return data_ == x.data_;}
|
||||
bool operator< (const MoveOnly& x) const {return data_ < x.data_;}
|
||||
bool operator==(const MoveOnly& x) const {return data_ == x.data_;}
|
||||
bool operator< (const MoveOnly& x) const {return data_ < x.data_;}
|
||||
};
|
||||
|
||||
namespace std {
|
||||
@@ -36,6 +36,6 @@ struct hash<MoveOnly>
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
#endif
|
||||
#endif // MOVEONLY_H
|
||||
|
@@ -46,4 +46,4 @@ struct alloc_first
|
||||
|
||||
bool alloc_first::allocator_constructed = false;
|
||||
|
||||
#endif
|
||||
#endif // ALLOC_FIRST_H
|
||||
|
@@ -46,4 +46,4 @@ struct alloc_last
|
||||
|
||||
bool alloc_last::allocator_constructed = false;
|
||||
|
||||
#endif
|
||||
#endif // ALLOC_LAST_H
|
||||
|
@@ -150,8 +150,6 @@ public:
|
||||
A3 select_on_container_copy_construction() const {return A3(-1);}
|
||||
};
|
||||
|
||||
|
||||
|
||||
template <class T> bool A3<T>::copy_called = false;
|
||||
template <class T> bool A3<T>::move_called = false;
|
||||
template <class T> bool A3<T>::constructed = false;
|
||||
@@ -171,6 +169,6 @@ bool operator!=(const A3<T>& x, const A3<U>& y)
|
||||
return !(x == y);
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // _LIBCPP_MOVE
|
||||
|
||||
#endif
|
||||
#endif // ALLOCATORS_H
|
||||
|
@@ -34,7 +34,6 @@ struct D
|
||||
explicit D(int i) : B(i) {}
|
||||
};
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
|
@@ -35,7 +35,7 @@ int main()
|
||||
assert(std::get<1>(t) == 1);
|
||||
}
|
||||
{
|
||||
std::tuple<MoveOnly, MoveOnly, MoveOnly> t(std::allocator_arg, A1<int>(),
|
||||
std::tuple<MoveOnly, MoveOnly, MoveOnly> t(std::allocator_arg, A1<int>(),
|
||||
MoveOnly(0),
|
||||
1, 2);
|
||||
assert(std::get<0>(t) == 0);
|
||||
@@ -55,14 +55,14 @@ int main()
|
||||
}
|
||||
// extensions
|
||||
{
|
||||
std::tuple<MoveOnly, MoveOnly, MoveOnly> t(std::allocator_arg, A1<int>(),
|
||||
std::tuple<MoveOnly, MoveOnly, MoveOnly> t(std::allocator_arg, A1<int>(),
|
||||
0, 1);
|
||||
assert(std::get<0>(t) == 0);
|
||||
assert(std::get<1>(t) == 1);
|
||||
assert(std::get<2>(t) == MoveOnly());
|
||||
}
|
||||
{
|
||||
std::tuple<MoveOnly, MoveOnly, MoveOnly> t(std::allocator_arg, A1<int>(),
|
||||
std::tuple<MoveOnly, MoveOnly, MoveOnly> t(std::allocator_arg, A1<int>(),
|
||||
0);
|
||||
assert(std::get<0>(t) == 0);
|
||||
assert(std::get<1>(t) == MoveOnly());
|
||||
|
@@ -38,7 +38,6 @@ struct D
|
||||
explicit D(int i) : B(i) {}
|
||||
};
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
|
@@ -33,7 +33,6 @@ struct D
|
||||
explicit D(int i) : B(i) {}
|
||||
};
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
|
@@ -12,7 +12,6 @@
|
||||
// template<class... Types>
|
||||
// tuple<Types&&...> forward_as_tuple(Types&&... t);
|
||||
|
||||
|
||||
#include <tuple>
|
||||
#include <cassert>
|
||||
|
||||
|
Reference in New Issue
Block a user