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 //===----------------------------------------------------------------------===//
8 
9 // <set>
10 
11 // class set
12 
13 // explicit set(const value_compare& comp) const;
14 // value_compare and key_compare are the same type for set/multiset
15 
16 // key_compare    key_comp() const;
17 // value_compare value_comp() const;
18 
19 #include <set>
20 #include <cassert>
21 
22 #include "../../../test_compare.h"
23 
24 int main(int, char**)
25 {
26     typedef test_compare<std::less<int> > C;
27     const std::set<int, C> m(C(3));
28     assert(m.empty());
29     assert(m.begin() == m.end());
30     assert(m.key_comp() == C(3));
31     assert(m.value_comp() == C(3));
32 
33   return 0;
34 }
35