use_facet

Retrieves a reference to a facet of a locale.

  template <class Facet> const Facet& use_facet

  (const locale& loc);  
Remarks

Throws a bad_cast exception if has_facet is false.

The function returns a facet reference to corresponding to its argument.