Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::locale::facet(3)	      C++ Standard Libary	 std::locale::facet(3)

NAME
       std::locale::facet - std::locale::facet

Synopsis
	  Defined in header <locale>
	  class	locale::facet;

	  std::locale::facet  is the base class	for facets. It provides	a com-
       mon base	class so
	  that locales could store pointers to the facets they implement in  a
       single indexed
	  container, and it abstracts support for facet	reference counting.

	  Whenever  a  facet  is  added	to a locale, the locale	increments the
       reference count in
	  the facet (through an	implementation-specific	mechanism). Whenever a
       locale is
	  destructed or	modified, it decrements	the reference  count  in  each
       facet it	no longer
	  implements. Whenever a facet's reference count becomes zero, the lo-
       cale performs
	  delete  static_cast<std::locale::facet*>(f);	where f	is the pointer
       to the facet.

Member functions
	  constructor	constructs a new facet with specified reference	count
			(protected member function)
	  operator=	the copy assignment operator is	deleted
			(protected member function)
	  destructor	the destructor is protected virtual
	  [virtual]	(virtual protected member function)

Example
	   This	section	is incomplete
	   Reason: no example

	  Defect reports

	  The following	behavior-changing defect reports were applied retroac-
       tively to
	  previously published C++ standards.

	     DR	      Applied	 to		  Behavior    as     published
       Correct behavior
	  LWG  2694  C++98	 the  definition  of  'facet'  was  removed by
       added the definition
			      the resolution of	LWG issue 436		  back

See also
	     the facet index type: each	facet class must declare or inherit  a
       public static
	  id member of this type
	     (class)

Category:
	    * Todo no example

http://cppreference.com		  2024.06.10		 std::locale::facet(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::locale::facet&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help