std::has_facet (3) - Linux Manuals
std::has_facet: std::has_facet
NAME
std::has_facet - std::has_facet
Synopsis
Defined in header <locale>
template< class Facet > (until C++11)
bool has_facet( const locale& loc ) throw();
template< class Facet > (since C++11)
bool has_facet( const locale& loc ) noexcept;
Checks if the locale loc implements the facet Facet.
Parameters
loc - the locale object to query
Return value
Returns true if the facet Facet was installed in the locale loc, false otherwise.
Example
// Run this code
Output:
See also
locale (class)
use_facet (function template)