libcxx initial import
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103490 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
30
test/containers/NotConstructible.h
Normal file
30
test/containers/NotConstructible.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef NOTCONSTRUCTIBLE_H
|
||||
#define NOTCONSTRUCTIBLE_H
|
||||
|
||||
#include <functional>
|
||||
|
||||
class NotConstructible
|
||||
{
|
||||
NotConstructible(const NotConstructible&);
|
||||
NotConstructible& operator=(const NotConstructible&);
|
||||
public:
|
||||
};
|
||||
|
||||
inline
|
||||
bool
|
||||
operator==(const NotConstructible&, const NotConstructible&)
|
||||
{return true;}
|
||||
|
||||
namespace std
|
||||
{
|
||||
|
||||
template <>
|
||||
struct hash<NotConstructible>
|
||||
: public std::unary_function<NotConstructible, std::size_t>
|
||||
{
|
||||
std::size_t operator()(const NotConstructible&) const {return 0;}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user