std::messages
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Text processing library
Regular expressions library (C++11)
Formatting library (C++20)
(C++17)
(C++17)
(C++17)
(C++17)
(C++17)
(C++26)
Localization library
messages
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
(C++11/17/26*)
std::messages
Defined in header
<locale>
template< class CharT >
class messages;
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.
std-messages-inheritance.svg
Inheritance diagram
Contents
[edit] Specializations
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
[edit] Nested types
Type
Definition
char_type
CharT
string_type
std::basic_string <CharT>
[edit] Data members
Member
Description
[edit] Member functions
[edit] Protected member functions
[virtual]
(virtual protected member function) [edit]
Inherited from std::messages_base
Nested types
Type
Definition
catalog
an unspecified signed integer type