std::regex_traits<CharT>::regex_traits
提供: cppreference.com
< cpp | regex | regex traits
regex_traits(); |
||
std::regex_traits オブジェクトをデフォルト構築します。 プライベートな std::locale メンバまたは必要に応じた他のあらゆる内部状態のデフォルト構築が含まれます。
[編集] 引数
(なし)
[編集] 戻り値
(なし)
[編集] 例
Run this code
#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'; }
出力:
The regex locale is en_US.utf8