diff options
Diffstat (limited to 'libcxx/test/std/containers/NotConstructible.h')
-rw-r--r-- | libcxx/test/std/containers/NotConstructible.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libcxx/test/std/containers/NotConstructible.h b/libcxx/test/std/containers/NotConstructible.h new file mode 100644 index 00000000000..ac8b98ef99f --- /dev/null +++ b/libcxx/test/std/containers/NotConstructible.h @@ -0,0 +1,39 @@ +//===----------------------------------------------------------------------===// +// +// 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> + : public std::unary_function<NotConstructible, std::size_t> +{ + std::size_t operator()(const NotConstructible&) const {return 0;} +}; + +} + +#endif // NOTCONSTRUCTIBLE_H |