std::money_base
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <locale> 中定义
|
||
| class money_base; |
||
类std::money_base提供std::moneypunct,std::money_get和std::money_put方面继承和使用的常数.
原文:
The class std::money_base provides constants which are inherited and used by the std::moneypunct, std::money_get and std::money_put facets.
[编辑] 会员类型
| 会员类型
|
Definition |
| enum part { none, space, symbol, sign, value }; | 无作用域的枚举类型
|
| struct pattern { char field[4]; }; | 货币格式类型
|
| 枚举常量
|
Definition |
none
|
空格被允许的,但不是必需的,除了在最后一个位置,空白是不被允许的
原文: whitespace is permitted but not required except in the last position, where whitespace is not permitted |
space
|
一个或多个空格字符是必需的
原文: one or more whitespace characters are required |
symbol
|
返回由moneypunct :: curr_symbol的字符的序列是必需的
原文: the sequence of characters returned by moneypunct::curr_symbol is required |
sign
|
第一由moneypunct :: positive_sign或moneypunct返回的字符:: negative_sign是必需的
原文: the first of the characters returned by moneypunct::positive_sign or moneypunct::negative_sign is required |
value
|
绝对数字货币的价值是必需的
原文: the absolute numeric monetary value is required |
[编辑] 注释
货币格式是一个数组为4chars转换为std::money_base::part。在该序列中,每个
}
symbol,sign,并value刚好只出现一次,并且space或none出现在其它位置。的默认格式,返回标准的std::moneypunct专业的{symbol, sign, none, value}原文:
The monetary format is an array of four chars convertible to std::money_base::part. In that sequence, each of
symbol, sign, and value appears exactly once, and either space or none appears in the remaining position. The default format, returned by the standard specializations of std::moneypunct is {symbol, sign, none, value[编辑] 另请参阅
| 定义货币格式std::money_get和std::money_put使用的参数 原文: defines monetary formatting parameters used by std::money_get and std::money_put (类模板) | |
| 解析和构造的货币价值,从一个输入字符序列 原文: parses and constructs a monetary value from an input character sequence (类模板) | |
| 输出一个字符序列格式的货币价值 原文: formats a monetary value for output as a character sequence (类模板) | |