cplusplus.com
C++ : Reference : Miscellaneous : locale : locale : combine
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
locale
has_facet
isalnum
isalpha
iscntrl
isdigit
isgraph
islower
isprint
ispunct
isspace
isupper
isxdigit
locale
tolower
toupper
use_facet
standard facets:
codecvt
codecvt_base
codecvt_byname
collate
collate_byname
ctype
ctype_base
ctype_byname
messages
messages_base
messages_byname
moneypunct
moneypunct_byname
money_base
money_get
money_put
numpunct
numpunct_byname
num_get
num_put
time_base
time_get
time_get_byname
time_put
time_put_byname
locale
locale::locale
locale::~locale
member functions:
locale::classic
locale::combine
locale::global
locale::name
locale::operator!=
locale::operator()
locale::operator=
locale::operator==
member types:
locale::category
locale::facet
locale::id


locale::combine

public member function
template <class Facet> locale combine (const locale& other) const;

Construct copy of locale modifying one facet

Returns a locale object constructed from a copy of *this, except for the facet specified by template parameter Facet, which is taken from other.

Parameters

other
Locale whose facet Facet is used to generate the new locale.

Return value

The resulting locale object, which has no name.

Throws runtime_error if other does not have the facet specified by Facet defined.

See also