Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / libstdc++-v3 / testsuite / 23_containers / headers / set / synopsis.cc
blob94ae348f6761a4650cdb42e7ef9a63287a3e7030
1 // { dg-do compile }
2 // { dg-require-normal-mode "" }
4 // Copyright (C) 2007, 2008, 2009, 2010 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.
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.
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/>.
21 #include <set>
23 namespace std {
24 template <class Key, class Compare, class Allocator>
25 class set;
27 template <class Key, class Compare, class Allocator>
28 bool operator==(const set<Key,Compare,Allocator>& x,
29 const set<Key,Compare,Allocator>& y);
31 template <class Key, class Compare, class Allocator>
32 bool operator< (const set<Key,Compare,Allocator>& x,
33 const set<Key,Compare,Allocator>& y);
35 template <class Key, class Compare, class Allocator>
36 bool operator!=(const set<Key,Compare,Allocator>& x,
37 const set<Key,Compare,Allocator>& y);
39 template <class Key, class Compare, class Allocator>
40 bool operator> (const set<Key,Compare,Allocator>& x,
41 const set<Key,Compare,Allocator>& y);
43 template <class Key, class Compare, class Allocator>
44 bool operator>=(const set<Key,Compare,Allocator>& x,
45 const set<Key,Compare,Allocator>& y);
47 template <class Key, class Compare, class Allocator>
48 bool operator<=(const set<Key,Compare,Allocator>& x,
49 const set<Key,Compare,Allocator>& y);
51 template <class Key, class Compare, class Allocator>
52 void swap(set<Key,Compare,Allocator>& x,
53 set<Key,Compare,Allocator>& y);
55 template <class Key, class Compare, class Allocator>
56 class multiset;
58 template <class Key, class Compare, class Allocator>
59 bool operator==(const multiset<Key,Compare,Allocator>& x,
60 const multiset<Key,Compare,Allocator>& y);
62 template <class Key, class Compare, class Allocator>
63 bool operator< (const multiset<Key,Compare,Allocator>& x,
64 const multiset<Key,Compare,Allocator>& y);
66 template <class Key, class Compare, class Allocator>
67 bool operator!=(const multiset<Key,Compare,Allocator>& x,
68 const multiset<Key,Compare,Allocator>& y);
70 template <class Key, class Compare, class Allocator>
71 bool operator> (const multiset<Key,Compare,Allocator>& x,
72 const multiset<Key,Compare,Allocator>& y);
74 template <class Key, class Compare, class Allocator>
75 bool operator>=(const multiset<Key,Compare,Allocator>& x,
76 const multiset<Key,Compare,Allocator>& y);
78 template <class Key, class Compare, class Allocator>
79 bool operator<=(const multiset<Key,Compare,Allocator>& x,
80 const multiset<Key,Compare,Allocator>& y);
82 template <class Key, class Compare, class Allocator>
83 void swap(multiset<Key,Compare,Allocator>& x,
84 multiset<Key,Compare,Allocator>& y);