cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
C++11
<cfenv> (fenv.h)
<cfloat> (float.h)
C++11
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
C++11
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
C++11
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
C++11
<ctgmath> (tgmath.h)
<ctime> (time.h)
C++11
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
C++11
<array>
<deque>
C++11
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
C++11
<unordered_map>
C++11
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
C++11
<atomic>
C++11
<condition_variable>
C++11
<future>
C++11
<mutex>
C++11
<thread>
Other:
<algorithm>
<bitset>
C++11
<chrono>
C++11
<codecvt>
<complex>
<exception>
<functional>
C++11
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
C++11
<random>
C++11
<ratio>
C++11
<regex>
<stdexcept>
<string>
C++11
<system_error>
C++11
<tuple>
C++11
<type_traits>
C++11
<typeindex>
<typeinfo>
<utility>
<valarray>
<regex>
C++11
ECMAScript syntax
C++11
regex_constants
classes (basic)
C++11
basic_regex
C++11
match_results
C++11
regex_error
C++11
regex_iterator
C++11
regex_token_iterator
C++11
regex_traits
C++11
sub_match
classes (template instantiations)
C++11
cmatch
C++11
csub_match
C++11
regex
C++11
smatch
C++11
ssub_match
C++11
wcmatch
C++11
wcsub_match
C++11
wregex
C++11
wsmatch
C++11
wssub_match
functions
C++11
regex_match
C++11
regex_replace
C++11
regex_search
regex_traits
C++11
regex_traits::regex_traits
member functions
C++11
regex_traits::getloc
C++11
regex_traits::imbue
C++11
regex_traits::isctype
C++11
regex_traits::length
C++11
regex_traits::lookup_classname
C++11
regex_traits::lookup_collatename
C++11
regex_traits::transform
C++11
regex_traits::transform_primary
C++11
regex_traits::translate
C++11
regex_traits::translate_nocase
C++11
regex_traits::value
Reference
<regex>
regex_traits
getloc
public member function
<regex>
std::
regex_traits
::getloc
locale_type getloc() const;
Get locale
Returns the
locale
object associated with the
regex_traits
object.
The value returned is the object set in the last call to
regex_traits::imbue
, or the global locale (
locale::global
) if
regex_traits::imbue
has not been called on the object.
This function is called by
regex::getloc
to obtain the locale.
Parameters
none
Return value
The
locale
object associated with the
regex_traits
object.
locale_type
is a member type, defined in
regex_traits
as an alias of the standard
locale
type.
See also
regex_traits::imbue
Imbue locale
(public member function)
basic_regex::getloc
Get locale
(public member function)
locale
Locale class
(class)