A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../error/error_code/../../locale/locale/combine.html below:

std::locale::combine - cppreference.com

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

Constructs a locale object which is a copy of *this except for the facet of type Facet, which is copied from other.

The program is ill-formed if Facet is not a facet or it is a volatile-qualified facet.

[edit] Return value

The new, nameless, locale.

[edit] Exceptions

std::runtime_error if other does not implement Facet.

[edit] Example

Output:

"C" locale: 1000.25
"C" locale with en_US numpunct: 1,000.25
[edit] Defect reports

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

DR Applied to Behavior as published Correct behavior LWG 14 C++98 locale::combine was non-const made const LWG 436 C++98 it was unclear whether Facet can be cv-qualified it can be const-qualified, but not volatile-qualified [edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4