From Jason Turner

[locale.messages.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmppjzqqajd/{from.md → to.md} +37 -0
tmp/tmppjzqqajd/{from.md → to.md} RENAMED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### General <a id="locale.messages.general">[[locale.messages.general]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ class messages_base {
6
+ public:
7
+ using catalog = unspecified signed integer type;
8
+ };
9
+
10
+ template<class charT>
11
+ class messages : public locale::facet, public messages_base {
12
+ public:
13
+ using char_type = charT;
14
+ using string_type = basic_string<charT>;
15
+
16
+ explicit messages(size_t refs = 0);
17
+
18
+ catalog open(const string& fn, const locale&) const;
19
+ string_type get(catalog c, int set, int msgid,
20
+ const string_type& dfault) const;
21
+ void close(catalog c) const;
22
+
23
+ static locale::id id;
24
+
25
+ protected:
26
+ ~messages();
27
+ virtual catalog do_open(const string&, const locale&) const;
28
+ virtual string_type do_get(catalog, int set, int msgid,
29
+ const string_type& dfault) const;
30
+ virtual void do_close(catalog) const;
31
+ };
32
+ }
33
+ ```
34
+
35
+ Values of type `messages_base::catalog` usable as arguments to members
36
+ `get` and `close` can be obtained only by calling member `open`.
37
+