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