Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/locale/messages base"

From cppreference.com
< cpp‎ | locale
m (Text replace - "{{tdcl" to "{{dcl")
m (tt)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{cpp/title | messages_base}}
+
{{cpp/title|messages_base}}
{{cpp/locale/sidebar}}
+
{{cpp/locale/navbar}}
{{ddcl list begin}}
+
{{dcl begin}}
{{ddcl list header | locale}}
+
{{dcl header|locale}}
{{ddcl list item | 1=
+
{{dcl|1=
 
class messages_base;
 
class messages_base;
 
}}
 
}}
{{ddcl list end}}
+
{{dcl end}}
  
The class {{c|std::messages_base}} provides a type definition which is inherited and used by the {{c|std::messages}} facets.
+
The class {{tt|std::messages_base}} provides a type definition which is inherited and used by the {{lc|std::messages}} facets.
  
 
===Member types===
 
===Member types===
{{dcl list begin}}
+
{{dsc begin}}
{{dcl list hitem | Member type | Definition}}
+
{{dsc hitem|Member type|Definition}}
{{dcl list item | {{tt|catalog}} | {{c|int}}}}
+
{{dsc|{{tt|catalog}}|An unspecified signed integer type}}
{{dcl list end}}
+
{{dsc end}}
 +
 
 +
===Defect reports===
 +
{{dr list begin}}
 +
{{dr list item|wg=lwg|dr=2028|std=C++98|before={{tt|catalog}} was defined as {{c/core|int}}|after=defined as an unspecified signed integer type<ref>The catalog type {{tt|nl_catd}} used in [https://unix.org/version4/ POSIX messaging API] is a typedef of an unspecified type.</ref>}}
 +
{{dr list end}}
 +
<references/>
  
 
===See also===
 
===See also===
{{dcl list begin}}
+
{{dsc begin}}
{{dcl list template | cpp/locale/dcl list messages}}
+
{{dsc inc|cpp/locale/dsc messages}}
{{dcl list end}}
+
{{dsc end}}
 +
 
 +
{{langlinks|de|es|fr|it|ja|pt|ru|zh}}

Latest revision as of 05:18, 11 August 2023

 
 
 
Defined in header <locale>
class messages_base;

The class std::messages_base provides a type definition which is inherited and used by the std::messages facets.

[edit] Member types

Member type Definition
catalog An unspecified signed integer type

[edit] Defect reports

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

DR Applied to Behavior as published Correct behavior
LWG 2028 C++98 catalog was defined as int defined as an unspecified signed integer type[1]
  1. The catalog type nl_catd used in POSIX messaging API is a typedef of an unspecified type.

[edit] See also

implements retrieval of strings from message catalogs
(class template) [edit]