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 Compare, class Alloc>
12 // bool operator==(const std::set<Key, Compare, Alloc>& lhs,
13 // const std::set<Key, Compare, Alloc>& rhs);
15 // template<class Key, class Compare, class Alloc>
16 // bool operator!=(const std::set<Key, Compare, Alloc>& lhs,
17 // const std::set<Key, Compare, Alloc>& rhs);
19 // template<class Key, class Compare, class Alloc>
20 // bool operator<(const std::set<Key, Compare, Alloc>& lhs,
21 // const std::set<Key, Compare, Alloc>& rhs);
23 // template<class Key, class Compare, class Alloc>
24 // bool operator>(const std::set<Key, Compare, Alloc>& lhs,
25 // const std::set<Key, Compare, Alloc>& rhs);
27 // template<class Key, class Compare, class Alloc>
28 // bool operator<=(const std::set<Key, Compare, Alloc>& lhs,
29 // const std::set<Key, Compare, Alloc>& rhs);
31 // template<class Key, class Compare, class Alloc>
32 // bool operator>=(const std::set<Key, Compare, Alloc>& lhs,
33 // const std::set<Key, Compare, Alloc>& rhs);
39 #include "test_comparisons.h"
41 int main(int, char**) {
46 const std::set
<int>& cs1
= s1
, cs2
= s2
;
47 assert(testComparisons(cs1
, cs2
, false, true));
53 const std::set
<int>& cs1
= s1
, cs2
= s2
;
54 assert(testComparisons(cs1
, cs2
, true, false));
61 const std::set
<int>& cs1
= s1
, cs2
= s2
;
62 assert(testComparisons(cs1
, cs2
, false, true));