]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/23_containers/headers/vector/synopsis.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / headers / vector / synopsis.cc
CommitLineData
a024740d 1// { dg-do compile }
98fff892 2// { dg-require-normal-mode "" }
8468bfe8 3// { dg-require-normal-namespace "" }
a024740d 4
99dee823 5// Copyright (C) 2007-2021 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 <vector>
23
13feb023
JW
24#if __cplusplus >= 201103L
25# define NOTHROW(X) noexcept(X)
26#else
27# define NOTHROW(X)
28#endif
29
a024740d
BK
30namespace std {
31 template <class T, class Allocator> class vector;
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 bool operator>=(const vector<T,Allocator>& x,
51 const vector<T,Allocator>& y);
52
53 template <class T, class Allocator>
54 bool operator<=(const vector<T,Allocator>& x,
55 const vector<T,Allocator>& y);
56
57 template <class T, class Allocator>
13feb023
JW
58 void swap(vector<T,Allocator>& x, vector<T,Allocator>& y)
59 NOTHROW(noexcept(x.swap(y)));
a024740d
BK
60
61 template <class Allocator> class vector<bool,Allocator>;
62
63 template <class Allocator>
64 bool operator==(const vector<bool,Allocator>& x,
65 const vector<bool,Allocator>& y);
66
67 template <class Allocator>
68 bool operator< (const vector<bool,Allocator>& x,
69 const vector<bool,Allocator>& y);
70
71 template <class Allocator>
72 bool operator!=(const vector<bool,Allocator>& x,
73 const vector<bool,Allocator>& y);
74
75 template <class Allocator>
76 bool operator> (const vector<bool,Allocator>& x,
77 const vector<bool,Allocator>& y);
78
79 template <class Allocator>
80 bool operator>=(const vector<bool,Allocator>& x,
81 const vector<bool,Allocator>& y);
82
83 template <class Allocator>
84 bool operator<=(const vector<bool,Allocator>& x,
85 const vector<bool,Allocator>& y);
86
87 template <class Allocator>
88 void swap(vector<bool,Allocator>& x, vector<bool,Allocator>& y);
89}