public:
pattern pos_format() const;
public:
pattern neg_format() const;
protected:
virtual pattern do_pos_format() const;
protected:
virtual pattern do_neg_format() const;
1) Public member function, calls the member function do_pos_format
of the most derived class.
2) Public member function, calls the member function do_neg_format
of the most derived class.
Returns the format structure (of type
std::money_base::format) which describes the formatting of positive monetary values.
4)Returns the format structure (of type
std::money_base::format) which describes the formatting of negative monetary values.
The standard specializations of std::moneypunct return the pattern {symbol, sign, none, value}.
[edit] Return valueThe object of type std::money_base::format describing the formatting used by this locale.
[edit] NotesWhile std::money_put uses pos_format
for formatting positive values and neg_format for formatting negative values, std::money_get uses neg_format
for parsing all monetary values: it assumes that neg_format
is compatible with pos_format
.
Output:
american locale: $123,456.78 locale with modified moneypunct: 123,456.78 $ 123,456.78 $-[edit] See also provides the string to use as the currency identifier
std::money_get<CharT,InputIt>
) [edit] formats a monetary value and writes to output stream
std::money_put<CharT,OutputIt>
) [edit]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4