Namespaces
Variants
Views
Actions

std::use_facet

From cppreference.com
< cpp‎ | locale
Revision as of 09:36, 26 January 2012 by P12 (Talk | contribs)

Template:cpp/locale/sidebar

Defined in header <locale>
template< class Facet >
const Facet& use_facet( const std::locale& loc );

Obtains a reference to a facet implemented by loc.

Contents

Parameters

loc - the locale object to query

Return value

Returns a reference the facet. The reference returned by this function is valid as long as any Template:cpp object exists that implements Facet.

Exceptions

Template:cpp if Template:cpp.

Example

Template:example cpp

See also

Template:cpp/locale/dcl list localeTemplate:cpp/locale/dcl list has facet