You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/containers/NotConstructible.h

42 lines
916 B
C++

//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#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>
{
typedef NotConstructible argument_type;
typedef std::size_t result_type;
std::size_t operator()(const NotConstructible&) const {return 0;}
};
}
#endif // NOTCONSTRUCTIBLE_H