]> git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/22_locale/headers/locale/synopsis.cc
Update copyright in libstdc++-v3.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / headers / locale / synopsis.cc
1 // { dg-do compile }
2
3 // Copyright (C) 2007-2013 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
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING3. If not see
18 // <http://www.gnu.org/licenses/>.
19
20 #include <locale>
21
22 namespace std {
23 // lib.locale, locale:
24 class locale;
25 template <class Facet> const Facet& use_facet(const locale&);
26 template <class Facet> bool has_facet(const locale&) throw();
27
28 // lib.locale.convenience, convenience interfaces:
29 template <class charT> bool isspace (charT c, const locale& loc);
30 template <class charT> bool isprint (charT c, const locale& loc);
31 template <class charT> bool iscntrl (charT c, const locale& loc);
32 template <class charT> bool isupper (charT c, const locale& loc);
33 template <class charT> bool islower (charT c, const locale& loc);
34 template <class charT> bool isalpha (charT c, const locale& loc);
35 template <class charT> bool isdigit (charT c, const locale& loc);
36 template <class charT> bool ispunct (charT c, const locale& loc);
37 template <class charT> bool isxdigit(charT c, const locale& loc);
38 template <class charT> bool isalnum (charT c, const locale& loc);
39 template <class charT> bool isgraph (charT c, const locale& loc);
40 template <class charT> charT toupper(charT c, const locale& loc);
41 template <class charT> charT tolower(charT c, const locale& loc);
42
43 // lib.category.ctype and lib.facet.ctype.special, ctype:
44 class ctype_base;
45 template <class charT> class ctype;
46 template <> class ctype<char>; // specialization
47 template <class charT> class ctype_byname;
48 template <> class ctype_byname<char>; // specialization
49 class codecvt_base;
50 template <class internT, class externT, class stateT>
51 class codecvt;
52 template <class internT, class externT, class stateT>
53 class codecvt_byname;
54
55 // lib.category.numeric and lib.facet.numpunct, numeric:
56 template <class charT, class InputIterator> class num_get;
57 template <class charT, class OutputIterator> class num_put;
58 template <class charT> class numpunct;
59 template <class charT> class numpunct_byname;
60
61 // lib.category.collate, collation:
62 template <class charT> class collate;
63 template <class charT> class collate_byname;
64
65 // lib.category.time, date and time:
66 class time_base;
67 template <class charT, class InputIterator> class time_get;
68 template <class charT, class InputIterator> class time_get_byname;
69 template <class charT, class OutputIterator> class time_put;
70 template <class charT, class OutputIterator> class time_put_byname;
71
72 // lib.category.monetary, money:
73 class money_base;
74 template <class charT, class InputIterator> class money_get;
75 template <class charT, class OutputIterator> class money_put;
76 template <class charT, bool Intl> class moneypunct;
77 template <class charT, bool Intl> class moneypunct_byname;
78
79 // lib.category.messages, message retrieval:
80 class messages_base;
81 template <class charT> class messages;
82 template <class charT> class messages_byname;
83 }