synopsis.cc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 <stack>
  18. namespace std {
  19. template <class T, class Container> class stack;
  20. template <class T, class Container>
  21. bool operator==(const stack<T, Container>& x,
  22. const stack<T, Container>& y);
  23. template <class T, class Container>
  24. bool operator< (const stack<T, Container>& x,
  25. const stack<T, Container>& y);
  26. template <class T, class Container>
  27. bool operator!=(const stack<T, Container>& x,
  28. const stack<T, Container>& y);
  29. template <class T, class Container>
  30. bool operator> (const stack<T, Container>& x,
  31. const stack<T, Container>& y);
  32. template <class T, class Container>
  33. bool operator>=(const stack<T, Container>& x,
  34. const stack<T, Container>& y);
  35. template <class T, class Container>
  36. bool operator<=(const stack<T, Container>& x,
  37. const stack<T, Container>& y);
  38. }