std::locale::combine (3) - Linux Manuals
std::locale::combine: std::locale::combine
NAME
std::locale::combine - std::locale::combine
Synopsis
Defined in header <locale>
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.
Return value
The new, nameless, locale.
Exceptions
std::runtime_error if other does not implement Facet
Example
// Run this code
Output:
See also
constructor (public member function)