std::regex_traits::regex_traits
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> regex_traits(); |
||
Default-costruisce l'oggetto std::regex_traits, compreso l'inadempimento-costruire il membro std::locale privato o qualsiasi altro stato interno, se necessario.
Original:
Default-constructs the std::regex_traits object, including default-constructing the private std::locale member or any other internal state as necessary.
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
(Nessuno)
Original:
(none)
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.
Valore di ritorno
(Nessuno)
Original:
(none)
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
#include <iostream>
#include <regex>
int main()
{
std::locale::global(std::locale("en_US.utf8"));
std::regex_traits<char> r1;
std::regex_traits<wchar_t> r2;
std::cout << "The regex locale is " << r1.getloc().name() << '\n';
}
Output:
The regex locale is en_US.utf8