Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / containers / NotConstructible.h
blobf8d0d4d84ae90252859c2ddf55e2f8dc6a61fd7a
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef NOTCONSTRUCTIBLE_H
10 #define NOTCONSTRUCTIBLE_H
12 #include <functional>
14 class NotConstructible
16 NotConstructible(const NotConstructible&);
17 NotConstructible& operator=(const NotConstructible&);
18 public:
21 inline
22 bool
23 operator==(const NotConstructible&, const NotConstructible&)
24 {return true;}
26 namespace std
29 template <>
30 struct hash<NotConstructible>
32 typedef NotConstructible argument_type;
33 typedef std::size_t result_type;
35 std::size_t operator()(const NotConstructible&) const {return 0;}
40 #endif // NOTCONSTRUCTIBLE_H