]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/23_containers/headers/queue/synopsis.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / headers / queue / synopsis.cc
1 // { dg-do compile }
2 // { dg-require-normal-namespace "" }
3
4 // Copyright (C) 2007-2022 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 <queue>
22
23 #if __cplusplus >= 201103L
24 # define NOTHROW noexcept
25 #else
26 # define NOTHROW
27 #endif
28
29 namespace std {
30 template <class T, class Container> class queue;
31 template <class T, class Container>
32 bool operator==(const queue<T, Container>& x,
33 const queue<T, Container>& y);
34
35 template <class T, class Container>
36 bool operator< (const queue<T, Container>& x,
37 const queue<T, Container>& y);
38
39 template <class T, class Container>
40 bool operator!=(const queue<T, Container>& x,
41 const queue<T, Container>& y);
42
43 template <class T, class Container>
44 bool operator> (const queue<T, Container>& x,
45 const queue<T, Container>& y);
46
47 template <class T, class Container>
48 bool operator>=(const queue<T, Container>& x,
49 const queue<T, Container>& y);
50
51 template <class T, class Container>
52 bool operator<=(const queue<T, Container>& x,
53 const queue<T, Container>& y);
54
55 template <class T, class Container, class Compare>
56 class priority_queue;
57 }