function template
<locale>
std::has_facet
template <class Facet> bool has_facet ( const locale& loc ) throw();
Check if locale has facet
Returns whether facet 
Facet is present in locale 
loc.
If 
Facet is not present in 
loc, it is looked up in the 
global locale. It that fails, 
bad_cast is thrown.
Because the 
global locale contains all 
standard facets, 
has_facet always returns 
true for these.
Parameters
- loc
- locale object.
The template parameter 
Facet shall be a 
facet type.
A 
facet type is a type publicly derived, directly or indirectly, from 
locale::facet with a static member 
id of type 
locale::id, such as the standard facets 
collate, 
codecvt, 
ctype, 
messages, 
moneypunct, 
money_get, 
money_put, 
numpunct, 
num_get, 
num_put, 
time_get and 
time_put.
Return type
true if 
Facet is a facet present in 
loc, 
false otherwise.
See also
- use_facet
- Access facet of locale (function template)
- locale::facet
- Locale facet (public member class
)