Difference between revisions of "cpp/locale/numpunct"
(→Member functions: fmt) |
(→Member functions: oops) |
||
Line 44: | Line 44: | ||
{{dcl list mem fun | cpp/locale/numpunct/do_truename | title=truename | invokes {{tt|do_truename}} }} | {{dcl list mem fun | cpp/locale/numpunct/do_truename | title=truename | invokes {{tt|do_truename}} }} | ||
{{dcl list mem fun | cpp/locale/numpunct/do_falsename | title=falsename | invokes {{tt|do_falsename}} }} | {{dcl list mem fun | cpp/locale/numpunct/do_falsename | title=falsename | invokes {{tt|do_falsename}} }} | ||
+ | {{dcl list end}} | ||
===Protected member functions=== | ===Protected member functions=== |
Revision as of 13:04, 9 November 2011
Template:cpp/locale/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td><locale>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">class numpunct : public std::locale::facet;
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
This section is incomplete Reason: inheritance diagram |
The facet Template:cpp encapsulates numeric punctuation preferences. Stream I/O operations use Template:cpp through Template:cpp and Template:cpp for parsing numeric input and formatting numeric output.
Two specializations are provided by the standard library
Template:tdcl list begin Template:tdcl list header Template:tdcl list item Template:tdcl list item Template:tdcl list end
Contents |
Member types
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list end
Member objects
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list end
Member functions
constructs a new numpunct facet (public member function) | |
destructs a numpunct facet (protected member function) | |
| |
invokes do_decimal_point (public member function) | |
invokes do_thousands_sep (public member function) | |
invokes do_grouping (public member function) | |
invokes do_truename (public member function) | |
invokes do_falsename (public member function) |
Protected member functions
[virtual] |
provides the character to use as decimal point (virtual protected member function) |
[virtual] |
provides the character to use as thousands separator (virtual protected member function) |
[virtual] |
provides the numbers of digits between each pair of thousands separators (virtual protected member function) |
[virtual] |
provides the string to use as the name of the boolean Template:cpp (virtual protected member function) |
[virtual] |
provides the string to use as the name of the boolean Template:cpp (virtual protected member function) |
Example
See also
creates a numpunct facet for the named locale (class template) |