cpp/locale/use facet

Obtains a reference to a facet implemented by.

The program is ill-formed if Facet is not a whose definition contains the public static member  or it is a volatile-qualified facet.

Return value
Returns a reference to the facet. The reference returned by this function is valid as long as any std object refers to that facet.

Exceptions
std if.