synopsis.cc 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 <locale>
  18. namespace std {
  19. // lib.locale, locale:
  20. class locale;
  21. template <class Facet> const Facet& use_facet(const locale&);
  22. template <class Facet> bool has_facet(const locale&) throw();
  23. // lib.locale.convenience, convenience interfaces:
  24. template <class charT> bool isspace (charT c, const locale& loc);
  25. template <class charT> bool isprint (charT c, const locale& loc);
  26. template <class charT> bool iscntrl (charT c, const locale& loc);
  27. template <class charT> bool isupper (charT c, const locale& loc);
  28. template <class charT> bool islower (charT c, const locale& loc);
  29. template <class charT> bool isalpha (charT c, const locale& loc);
  30. template <class charT> bool isdigit (charT c, const locale& loc);
  31. template <class charT> bool ispunct (charT c, const locale& loc);
  32. template <class charT> bool isxdigit(charT c, const locale& loc);
  33. template <class charT> bool isalnum (charT c, const locale& loc);
  34. template <class charT> bool isgraph (charT c, const locale& loc);
  35. template <class charT> charT toupper(charT c, const locale& loc);
  36. template <class charT> charT tolower(charT c, const locale& loc);
  37. // lib.category.ctype and lib.facet.ctype.special, ctype:
  38. class ctype_base;
  39. template <class charT> class ctype;
  40. template <> class ctype<char>; // specialization
  41. template <class charT> class ctype_byname;
  42. template <> class ctype_byname<char>; // specialization
  43. class codecvt_base;
  44. template <class internT, class externT, class stateT>
  45. class codecvt;
  46. template <class internT, class externT, class stateT>
  47. class codecvt_byname;
  48. // lib.category.numeric and lib.facet.numpunct, numeric:
  49. template <class charT, class InputIterator> class num_get;
  50. template <class charT, class OutputIterator> class num_put;
  51. template <class charT> class numpunct;
  52. template <class charT> class numpunct_byname;
  53. // lib.category.collate, collation:
  54. template <class charT> class collate;
  55. template <class charT> class collate_byname;
  56. // lib.category.time, date and time:
  57. class time_base;
  58. template <class charT, class InputIterator> class time_get;
  59. template <class charT, class InputIterator> class time_get_byname;
  60. template <class charT, class OutputIterator> class time_put;
  61. template <class charT, class OutputIterator> class time_put_byname;
  62. // lib.category.monetary, money:
  63. class money_base;
  64. template <class charT, class InputIterator> class money_get;
  65. template <class charT, class OutputIterator> class money_put;
  66. template <class charT, bool Intl> class moneypunct;
  67. template <class charT, bool Intl> class moneypunct_byname;
  68. // lib.category.messages, message retrieval:
  69. class messages_base;
  70. template <class charT> class messages;
  71. template <class charT> class messages_byname;
  72. }