mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-21 15:10:37 +08:00
Remove some test scaffolding that I added and then didn't need. No functional change
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@256861 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -35,29 +35,6 @@ public:
|
||||
bool operator< (const MoveOnly& x) const {return data_ < x.data_;}
|
||||
};
|
||||
|
||||
class MoveOnly2
|
||||
{
|
||||
MoveOnly2(const MoveOnly&);
|
||||
MoveOnly2& operator=(const MoveOnly2&);
|
||||
|
||||
int data_;
|
||||
public:
|
||||
MoveOnly2(int data = 1) : data_(data) {}
|
||||
MoveOnly2(MoveOnly2&& x)
|
||||
: data_(x.data_) {x.data_ = 0;}
|
||||
MoveOnly2& operator=(MoveOnly2&& x)
|
||||
{data_ = x.data_; x.data_ = 0; return *this;}
|
||||
MoveOnly2(MoveOnly&& x)
|
||||
: data_(x.data_) {x.data_ = 0;}
|
||||
MoveOnly2& operator=(MoveOnly&& x)
|
||||
{data_ = x.data_; x.data_ = 0; return *this;}
|
||||
|
||||
int get() const {return data_;}
|
||||
|
||||
bool operator==(const MoveOnly2& x) const {return data_ == x.data_;}
|
||||
bool operator< (const MoveOnly2& x) const {return data_ < x.data_;}
|
||||
};
|
||||
|
||||
namespace std {
|
||||
|
||||
template <>
|
||||
@@ -67,12 +44,6 @@ struct hash<MoveOnly>
|
||||
std::size_t operator()(const MoveOnly& x) const {return x.get();}
|
||||
};
|
||||
|
||||
template <>
|
||||
struct hash<MoveOnly2>
|
||||
: public std::unary_function<MoveOnly, std::size_t>
|
||||
{
|
||||
std::size_t operator()(const MoveOnly2& x) const {return x.get();}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
|
Reference in New Issue
Block a user