Name

messages_byname class template — Facet for retrieving strings from a message catalog

Synopsis

template <typename charT>
class messages_byname : public messages<charT>
{
public:
  typedef messages_base::catalog catalog;
  typedef basic_string<charT> string_type;
  explicit messages_byname(const char*, size_t refs = 0);
protected:
  //  . . .  Same virtual functions as in messages
};

The messages_byname class template is a facet for a message catalog; it uses a named locale. The messages_byname<char> and messages_byname<wchar_t> instantiations are standard.

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.