synopsis.cc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // { dg-do compile }
  2. // { dg-require-normal-namespace "" }
  3. // Copyright (C) 2007-2022 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 3, or (at your option)
  9. // any later version.
  10. // This library is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. // GNU General Public License for more details.
  14. // You should have received a copy of the GNU General Public License along
  15. // with this library; see the file COPYING3. If not see
  16. // <http://www.gnu.org/licenses/>.
  17. #include <queue>
  18. #if __cplusplus >= 201103L
  19. # define NOTHROW noexcept
  20. #else
  21. # define NOTHROW
  22. #endif
  23. namespace std {
  24. template <class T, class Container> class queue;
  25. template <class T, class Container>
  26. bool operator==(const queue<T, Container>& x,
  27. const queue<T, Container>& y);
  28. template <class T, class Container>
  29. bool operator< (const queue<T, Container>& x,
  30. const queue<T, Container>& y);
  31. template <class T, class Container>
  32. bool operator!=(const queue<T, Container>& x,
  33. const queue<T, Container>& y);
  34. template <class T, class Container>
  35. bool operator> (const queue<T, Container>& x,
  36. const queue<T, Container>& y);
  37. template <class T, class Container>
  38. bool operator>=(const queue<T, Container>& x,
  39. const queue<T, Container>& y);
  40. template <class T, class Container>
  41. bool operator<=(const queue<T, Container>& x,
  42. const queue<T, Container>& y);
  43. template <class T, class Container, class Compare>
  44. class priority_queue;
  45. }