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