std::money_base
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
| Definido en el archivo de encabezado <locale>
|
||
class money_base; |
||
El std::money_base clase proporciona constantes que se heredan y utilizados por los std::moneypunct, std::money_get y std::money_put facetas .
Original:
The class std::money_base provides constants which are inherited and used by the std::moneypunct, std::money_get and std::money_put facets.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Tipos de miembros
Miembro de tipo
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
enum part { none, space, symbol, sign, value };
|
tipo de enumeración sin ámbito
Original: unscoped enumeration type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
struct pattern { char field[4]; };
|
el tipo de formato monetario
Original: the monetary format type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Enumeración constante
Original: Enumeration constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
none
|
espacios en blanco se permite pero no es obligatorio, excepto en la última posición, donde los espacios en blanco no está permitido
Original: whitespace is permitted but not required except in the last position, where whitespace is not permitted The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
space
|
uno o más espacios en blanco son necesarios
Original: one or more whitespace characters are required The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
symbol
|
la secuencia de caracteres devuelto por moneypunct :: curr_symbol se requiere
Original: the sequence of characters returned by moneypunct::curr_symbol is required The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
sign
|
el primero de los caracteres devueltos por moneypunct :: positive_sign o moneypunct :: negative_sign se requiere
Original: the first of the characters returned by moneypunct::positive_sign or moneypunct::negative_sign is required The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
value
|
el valor monetario absoluto numérico es necesario
Original: the absolute numeric monetary value is required The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Notas
El formato monetario es un conjunto de cuatro
chars convertibles en std::money_base::part. En dicha secuencia, cada uno de symbol, sign, y value aparece exactamente una vez, y, o bien space o none aparece en la posición restante. El formato por defecto, devuelto por las especializaciones estándar de std::moneypunct es {symbol, sign, none, value}Original:
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, valueThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
}
Ver también
| Define los parámetros de formato monetario utilizados por std::money_get y std::money_put. (plantilla de clase) | |
| Analiza y construye un valor monetario a partir de una secuencia de caracteres de entrada. (plantilla de clase) | |
| Formatos de un valor monetario para la salida como una secuencia de caracteres. (plantilla de clase) |