std::messages<CharT>::close,std::messages<CharT>::do_close (3) - Linux Manuals
std::messages<CharT>::close,std::messages<CharT>::do_close: std::messages<CharT>::close,std::messages<CharT>::do_close
NAME
std::messages<CharT>::close,std::messages<CharT>::do_close - std::messages<CharT>::close,std::messages<CharT>::do_close
Synopsis
Defined in header <locale>
public: (1)
void close( catalog c ) const;
protected: (2)
virtual void do_close( catalog c ) const;
1) public member function, calls the protected virtual member function do_close of the most derived class.
2) Releases the implementation-defined resources associated with an open catalog that is designated by the value c of type catalog (inherited from std::messages_base), which was obtained from open().
Parameters
c - a valid open catalog identifier, on which close() has not yet been called
Return value
(none)
Notes
On POSIX systems, this function call usually translates to a call to catclose(). In GNU libstdc++, which is implemented in terms of GNU gettext(), it does nothing.
Example
The following example demonstrated retrieval of messages: on a typical GNU/Linux system it reads from /usr/share/locale/de/LC_MESSAGES/sed.mo
// Run this code
Possible output:
See also