.\" ident @(#)facets.3 .\" Standard Template Library .\" $$RW_INSERT_HEADER "slyrs.man" .TH facets 3C++ "02 Apr 1998" "Rogue Wave Software" "-" .ce2 Standard C++ Library Copyright 1998, Rogue Wave Software, Inc. .SH NAME \f2facets\fP \ - A family of classes used to encapsulate categories of locale functionality. .SH DESCRIPTION The Standard C++ Localization library includes a locale interface that contains a collection of diverse facets. Each facet has localization facilities for some specific area, such as character classification or numeric formatting. Each facet also falls into one or more broad categories. These categories are defined in the locale class, and the standard facets fit into these categories as follows. CATEGORY FACETS \f2collate\fP \f2collate, collate_byname\fP \f2ctype\fP \f2ctype, codecvt, ctype_byname, codecvt_byname\fP \f2monetary\fP \f2moneypunct, moneypunct_byname, money_put, money_get\fP \f2numeric\fP \f2numpunct, numpunct_byname, num_put, num_get\fP \f2time\fP \f2time_put, time_put_byname, time_get, time_get_byname\fP \f2messages\fP \f2messages, messages_byname\fP A facet must satisfy two properties. First, it must be derived from the base class \f2locale::facet\fP, either directly or indirectly (for example, \f2facet -> ctype -> my_ctype\fP). Second, it must contain a member of type \f2locale::id\fP. This ensures that the locale class can manage its collection of facets properly. .SH SEE ALSO locale, specific facet reference sections