]>
Commit | Line | Data |
---|---|---|
a024740d | 1 | // { dg-do compile } |
98fff892 | 2 | // { dg-require-normal-mode "" } |
8468bfe8 | 3 | // { dg-require-normal-namespace "" } |
a024740d | 4 | |
a945c346 | 5 | // Copyright (C) 2007-2024 Free Software Foundation, Inc. |
a024740d BK |
6 | // |
7 | // This file is part of the GNU ISO C++ Library. This library is free | |
8 | // software; you can redistribute it and/or modify it under the | |
9 | // terms of the GNU General Public License as published by the | |
748086b7 | 10 | // Free Software Foundation; either version 3, or (at your option) |
a024740d BK |
11 | // any later version. |
12 | ||
13 | // This library is distributed in the hope that it will be useful, | |
14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | // GNU General Public License for more details. | |
17 | ||
18 | // You should have received a copy of the GNU General Public License along | |
748086b7 JJ |
19 | // with this library; see the file COPYING3. If not see |
20 | // <http://www.gnu.org/licenses/>. | |
a024740d BK |
21 | |
22 | #include <set> | |
23 | ||
13feb023 JW |
24 | #if __cplusplus >= 201103L |
25 | # define NOTHROW(X) noexcept(X) | |
26 | #else | |
27 | # define NOTHROW(X) | |
28 | #endif | |
29 | ||
a024740d BK |
30 | namespace std { |
31 | template <class Key, class Compare, class Allocator> | |
32 | class set; | |
33 | ||
34 | template <class Key, class Compare, class Allocator> | |
35 | bool operator==(const set<Key,Compare,Allocator>& x, | |
36 | const set<Key,Compare,Allocator>& y); | |
37 | ||
38 | template <class Key, class Compare, class Allocator> | |
39 | bool operator< (const set<Key,Compare,Allocator>& x, | |
40 | const set<Key,Compare,Allocator>& y); | |
41 | ||
42 | template <class Key, class Compare, class Allocator> | |
43 | bool operator!=(const set<Key,Compare,Allocator>& x, | |
44 | const set<Key,Compare,Allocator>& y); | |
45 | ||
46 | template <class Key, class Compare, class Allocator> | |
47 | bool operator> (const set<Key,Compare,Allocator>& x, | |
48 | const set<Key,Compare,Allocator>& y); | |
49 | ||
50 | template <class Key, class Compare, class Allocator> | |
51 | bool operator>=(const set<Key,Compare,Allocator>& x, | |
52 | const set<Key,Compare,Allocator>& y); | |
53 | ||
54 | template <class Key, class Compare, class Allocator> | |
55 | bool operator<=(const set<Key,Compare,Allocator>& x, | |
56 | const set<Key,Compare,Allocator>& y); | |
57 | ||
58 | template <class Key, class Compare, class Allocator> | |
59 | void swap(set<Key,Compare,Allocator>& x, | |
13feb023 JW |
60 | set<Key,Compare,Allocator>& y) |
61 | NOTHROW(noexcept(x.swap(y))); | |
a024740d BK |
62 | |
63 | template <class Key, class Compare, class Allocator> | |
64 | class multiset; | |
65 | ||
66 | template <class Key, class Compare, class Allocator> | |
67 | bool operator==(const multiset<Key,Compare,Allocator>& x, | |
68 | const multiset<Key,Compare,Allocator>& y); | |
69 | ||
70 | template <class Key, class Compare, class Allocator> | |
71 | bool operator< (const multiset<Key,Compare,Allocator>& x, | |
72 | const multiset<Key,Compare,Allocator>& y); | |
73 | ||
74 | template <class Key, class Compare, class Allocator> | |
75 | bool operator!=(const multiset<Key,Compare,Allocator>& x, | |
76 | const multiset<Key,Compare,Allocator>& y); | |
77 | ||
78 | template <class Key, class Compare, class Allocator> | |
79 | bool operator> (const multiset<Key,Compare,Allocator>& x, | |
80 | const multiset<Key,Compare,Allocator>& y); | |
81 | ||
82 | template <class Key, class Compare, class Allocator> | |
83 | bool operator>=(const multiset<Key,Compare,Allocator>& x, | |
84 | const multiset<Key,Compare,Allocator>& y); | |
85 | ||
86 | template <class Key, class Compare, class Allocator> | |
87 | bool operator<=(const multiset<Key,Compare,Allocator>& x, | |
88 | const multiset<Key,Compare,Allocator>& y); | |
89 | ||
90 | template <class Key, class Compare, class Allocator> | |
91 | void swap(multiset<Key,Compare,Allocator>& x, | |
13feb023 JW |
92 | multiset<Key,Compare,Allocator>& y) |
93 | NOTHROW(noexcept(x.swap(y))); | |
a024740d | 94 | } |