]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/23_containers/headers/set/synopsis.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / headers / set / synopsis.cc
1 // { dg-do compile }
2 // { dg-require-normal-mode "" }
3
4 // Copyright (C) 2007-2016 Free Software Foundation, Inc.
5 //
6 // This file is part of the GNU ISO C++ Library. This library is free
7 // software; you can redistribute it and/or modify it under the
8 // terms of the GNU General Public License as published by the
9 // Free Software Foundation; either version 3, or (at your option)
10 // any later version.
11
12 // This library is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16
17 // You should have received a copy of the GNU General Public License along
18 // with this library; see the file COPYING3. If not see
19 // <http://www.gnu.org/licenses/>.
20
21 #include <set>
22
23 namespace std {
24 template <class Key, class Compare, class Allocator>
25 class set;
26
27 template <class Key, class Compare, class Allocator>
28 bool operator==(const set<Key,Compare,Allocator>& x,
29 const set<Key,Compare,Allocator>& y);
30
31 template <class Key, class Compare, class Allocator>
32 bool operator< (const set<Key,Compare,Allocator>& x,
33 const set<Key,Compare,Allocator>& y);
34
35 template <class Key, class Compare, class Allocator>
36 bool operator!=(const set<Key,Compare,Allocator>& x,
37 const set<Key,Compare,Allocator>& y);
38
39 template <class Key, class Compare, class Allocator>
40 bool operator> (const set<Key,Compare,Allocator>& x,
41 const set<Key,Compare,Allocator>& y);
42
43 template <class Key, class Compare, class Allocator>
44 bool operator>=(const set<Key,Compare,Allocator>& x,
45 const set<Key,Compare,Allocator>& y);
46
47 template <class Key, class Compare, class Allocator>
48 bool operator<=(const set<Key,Compare,Allocator>& x,
49 const set<Key,Compare,Allocator>& y);
50
51 template <class Key, class Compare, class Allocator>
52 void swap(set<Key,Compare,Allocator>& x,
53 set<Key,Compare,Allocator>& y);
54
55 template <class Key, class Compare, class Allocator>
56 class multiset;
57
58 template <class Key, class Compare, class Allocator>
59 bool operator==(const multiset<Key,Compare,Allocator>& x,
60 const multiset<Key,Compare,Allocator>& y);
61
62 template <class Key, class Compare, class Allocator>
63 bool operator< (const multiset<Key,Compare,Allocator>& x,
64 const multiset<Key,Compare,Allocator>& y);
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 void swap(multiset<Key,Compare,Allocator>& x,
84 multiset<Key,Compare,Allocator>& y);
85 }