1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
11 // template <class Key, class Hash, class Pred, class Alloc>
13 // operator==(const unordered_set<Key, Hash, Pred, Alloc>& x,
14 // const unordered_set<Key, Hash, Pred, Alloc>& y);
16 // template <class Key, class Hash, class Pred, class Alloc>
18 // operator!=(const unordered_set<Key, Hash, Pred, Alloc>& x,
19 // const unordered_set<Key, Hash, Pred, Alloc>& y);
21 #include <unordered_set>
24 #include "test_macros.h"
25 #include "min_allocator.h"
30 typedef std::unordered_set
<int> C
;
43 const C
c1(std::begin(a
), std::end(a
));
49 typedef std::unordered_set
<int> C
;
62 const C
c1(std::begin(a
), std::end(a
));
68 typedef std::unordered_set
<int> C
;
81 C
c1(std::begin(a
), std::end(a
));
93 #if TEST_STD_VER >= 11
95 typedef std::unordered_set
<int, std::hash
<int>, std::equal_to
<int>, min_allocator
<int>> C
;
108 const C
c1(std::begin(a
), std::end(a
));
114 typedef std::unordered_set
<int, std::hash
<int>, std::equal_to
<int>, min_allocator
<int>> C
;
127 const C
c1(std::begin(a
), std::end(a
));
133 typedef std::unordered_set
<int, std::hash
<int>, std::equal_to
<int>, min_allocator
<int>> C
;
146 C
c1(std::begin(a
), std::end(a
));