Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library Reference Guide

has_facet()

Library:  Localization


Function

Local Index

No Entries

Summary

A function template used to determine if a locale has a given facet

Synopsis

#include <locale>

namespace std {
  template <class Facet> 
  bool has_facet(const locale&) throw();
}

Description

The function has_facet() returns true if the requested facet is available in the locale. Otherwise, it returns false. You specify the facet type by explicitly including the template parameter (see the example below).

Example

See Also

locale, Facets, use_facet()

Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems -- Programming Language C++, Section 22.1



Previous fileTop of DocumentContentsIndex pageNext file