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