]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/23_containers/headers/vector/synopsis.cc
Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / headers / vector / synopsis.cc
CommitLineData
a024740d
BK
1// { dg-do compile }
2
748086b7 3// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
a024740d
BK
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
748086b7 8// Free Software Foundation; either version 3, or (at your option)
a024740d
BK
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
748086b7
JJ
17// with this library; see the file COPYING3. If not see
18// <http://www.gnu.org/licenses/>.
a024740d
BK
19
20#include <vector>
21
22namespace std {
23 template <class T, class Allocator> class vector;
24
25 template <class T, class Allocator>
26 bool operator==(const vector<T,Allocator>& x,
27 const vector<T,Allocator>& y);
28
29 template <class T, class Allocator>
30 bool operator< (const vector<T,Allocator>& x,
31 const vector<T,Allocator>& y);
32
33 template <class T, class Allocator>
34 bool operator!=(const vector<T,Allocator>& x,
35 const vector<T,Allocator>& y);
36
37 template <class T, class Allocator>
38 bool operator> (const vector<T,Allocator>& x,
39 const vector<T,Allocator>& y);
40
41 template <class T, class Allocator>
42 bool operator>=(const vector<T,Allocator>& x,
43 const vector<T,Allocator>& y);
44
45 template <class T, class Allocator>
46 bool operator<=(const vector<T,Allocator>& x,
47 const vector<T,Allocator>& y);
48
49 template <class T, class Allocator>
50 void swap(vector<T,Allocator>& x, vector<T,Allocator>& y);
51
52 template <class Allocator> class vector<bool,Allocator>;
53
54 template <class Allocator>
55 bool operator==(const vector<bool,Allocator>& x,
56 const vector<bool,Allocator>& y);
57
58 template <class Allocator>
59 bool operator< (const vector<bool,Allocator>& x,
60 const vector<bool,Allocator>& y);
61
62 template <class Allocator>
63 bool operator!=(const vector<bool,Allocator>& x,
64 const vector<bool,Allocator>& y);
65
66 template <class Allocator>
67 bool operator> (const vector<bool,Allocator>& x,
68 const vector<bool,Allocator>& y);
69
70 template <class Allocator>
71 bool operator>=(const vector<bool,Allocator>& x,
72 const vector<bool,Allocator>& y);
73
74 template <class Allocator>
75 bool operator<=(const vector<bool,Allocator>& x,
76 const vector<bool,Allocator>& y);
77
78 template <class Allocator>
79 void swap(vector<bool,Allocator>& x, vector<bool,Allocator>& y);
80}