From Jason Turner

[locale.nm.put.general]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp1c_kgtfa/{from.md → to.md} +40 -0
tmp/tmp1c_kgtfa/{from.md → to.md} RENAMED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ##### General <a id="locale.nm.put.general">[[locale.nm.put.general]]</a>
2
+
3
+ ``` cpp
4
+ namespace std {
5
+ template<class charT, class OutputIterator = ostreambuf_iterator<charT>>
6
+ class num_put : public locale::facet {
7
+ public:
8
+ using char_type = charT;
9
+ using iter_type = OutputIterator;
10
+
11
+ explicit num_put(size_t refs = 0);
12
+
13
+ iter_type put(iter_type s, ios_base& f, char_type fill, bool v) const;
14
+ iter_type put(iter_type s, ios_base& f, char_type fill, long v) const;
15
+ iter_type put(iter_type s, ios_base& f, char_type fill, long long v) const;
16
+ iter_type put(iter_type s, ios_base& f, char_type fill, unsigned long v) const;
17
+ iter_type put(iter_type s, ios_base& f, char_type fill, unsigned long long v) const;
18
+ iter_type put(iter_type s, ios_base& f, char_type fill, double v) const;
19
+ iter_type put(iter_type s, ios_base& f, char_type fill, long double v) const;
20
+ iter_type put(iter_type s, ios_base& f, char_type fill, const void* v) const;
21
+
22
+ static locale::id id;
23
+
24
+ protected:
25
+ ~num_put();
26
+ virtual iter_type do_put(iter_type, ios_base&, char_type fill, bool v) const;
27
+ virtual iter_type do_put(iter_type, ios_base&, char_type fill, long v) const;
28
+ virtual iter_type do_put(iter_type, ios_base&, char_type fill, long long v) const;
29
+ virtual iter_type do_put(iter_type, ios_base&, char_type fill, unsigned long) const;
30
+ virtual iter_type do_put(iter_type, ios_base&, char_type fill, unsigned long long) const;
31
+ virtual iter_type do_put(iter_type, ios_base&, char_type fill, double v) const;
32
+ virtual iter_type do_put(iter_type, ios_base&, char_type fill, long double v) const;
33
+ virtual iter_type do_put(iter_type, ios_base&, char_type fill, const void* v) const;
34
+ };
35
+ }
36
+ ```
37
+
38
+ The facet `num_put` is used to format numeric values to a character
39
+ sequence such as an ostream.
40
+