std::locale::global
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody>| Elemento definito nell'header <locale>
|
||
static locale global( const locale& loc ); |
||
Sostituisce il globale C + + con
loc locale, il che significa che tutte le future chiamate al costruttore predefinito std::locale ora restituire una copia di loc. Se loc ha un nome, sostituisce anche la versione locale C come per std::setlocale(LC_ALL, loc.name().c_str());. Questa funzione è l'unico modo per modificare il globale C + + locale, che altrimenti è equivalente a std::locale::classic() all'avvio del programma.Original:
Replaces the global C++ locale with
loc, which means all future calls to the std::locale default constructor will now return a copy of loc. If loc has a name, also replaces the C locale as if by std::setlocale(LC_ALL, loc.name().c_str());. This function is the only way to modify the global C++ locale, which is otherwise equivalent to std::locale::classic() at program startup.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.
Parametri
| loc | - | dalla nuova società globale C + + locale
Original: the new global C++ locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valore di ritorno
Il valore precedente del regime globale di C + + locale.
Original:
The previous value of the global C++ locale.
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.
Esempio
| This section is incomplete Reason: no example |
Vedi anche
costruisce un nuovo locale Original: constructs a new locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) | |
[statico] |
ottiene un riferimento al locale "C" Original: obtains a reference to the "C" locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico statico) |
ottiene e imposta la localizzazione corrente C Original: gets and sets the current C locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (funzione) | |