std::regex_traits::regex_traits
Aus cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody> regex_traits(); |
||
Default-baut das std::regex_traits Objekt, einschließlich Standard-Aufbau der privaten std::locale Mitglied oder einen beliebigen anderen internen Staat wie nötig .
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.
Parameter
(None)
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.
Rückgabewert
(None)
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.
Beispiel
#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