std::messages<CharT>::~messages (3) - Linux Manuals
std::messages<CharT>::~messages: std::messages<CharT>::~messages
Command to display std::messages<CharT>::~messages
manual in Linux: $ man 3 std::messages<CharT>::~messages
NAME
std::messages<CharT>::~messages - std::messages<CharT>::~messages
Synopsis
Defined in header <locale>
protected: ~messages();
Destructs a std::messages facet. This destructor is protected and virtual (due to base_class destructor being virtual). An object of type std::messages, like most facets, can only be destroyed when the last std::locale object that implements this facet goes out of scope or if a user-defined class is derived from std::messages and implements a public destructor.
Example
// Run this code
#include <iostream>
#include <locale>
struct Destructible_messages : public std::messages<wchar_t>
{
Destructible_messages(std::size_t refs = 0) : messages(refs) {}
// note: the implicit destructor is public
};
int main()
{
Destructible_messages dc;
// std::messages<wchar_t> c; // compile error: protected destructor
}
Pages related to std::messages<CharT>::~messages
- std::messages<CharT>::close,std::messages<CharT>::do_close (3) - std::messages<CharT>::close,std::messages<CharT>::do_close
- std::messages<CharT>::get,std::messages<CharT>::do_get (3) - std::messages<CharT>::get,std::messages<CharT>::do_get
- std::messages<CharT>::messages (3) - std::messages<CharT>::messages
- std::messages<CharT>::open,std::messages<CharT>::do_open (3) - std::messages<CharT>::open,std::messages<CharT>::do_open
- std::messages (3) - std::messages
- std::messages_base (3) - std::messages_base
- std::messages_byname (3) - std::messages_byname
- std::mem_fn (3) - std::mem_fn
- std::mem_fun (3) - std::mem_fun
- std::mem_fun_ref (3) - std::mem_fun_ref
- std::mem_fun_ref_t,std::mem_fun1_ref_t,std::const_mem_fun_ref_t, (3) - std::mem_fun_ref_t,std::mem_fun1_ref_t,std::const_mem_fun_ref_t,