Defined in header <locale> | ||
---|---|---|
template< class CharT > class messages; |
Class template std::messages
is a standard locale facet that encapsulates retrieval of strings from message catalogs, such as the ones provided by GNU gettext or by POSIX catgets
.
The source of the messages is implementation-defined.
Inheritance diagram.
The standard library is guaranteed to provide the following specializations (they are required to be implemented by any locale object):
Defined in header <locale> |
|
---|---|
std::messages<char> | accesses narrow string message catalog |
std::messages<wchar_t> | accesses wide string message catalog |
Member type | Definition |
---|---|
char_type | CharT |
string_type | std::basic_string<CharT> |
constructs a new messages facet (public member function) |
|
destructs a messages facet (protected member function) |
|
invokes do_open (public member function) |
|
invokes do_get (public member function) |
|
invokes do_close (public member function) |
static std::locale::id id | id of the locale (public member object) |
[virtual] | opens a named message catalog (virtual protected member function) |
[virtual] | retrieves a message from an open message catalog (virtual protected member function) |
[virtual] | closes a message catalog (virtual protected member function) |
Type | Definition |
---|---|
catalog | /* unspecified signed integer type */ |
defines messages catalog type (class) |
|
represents the system-supplied std::messages for the named locale (class template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/locale/messages