std::codecvt<InternT,ExternT,State>::~codecvt (3) - Linux Manuals
std::codecvt<InternT,ExternT,State>::~codecvt: std::codecvt<InternT,ExternT,State>::~codecvt
Command to display std::codecvt<InternT,ExternT,State>::~codecvt
manual in Linux: $ man 3 std::codecvt<InternT,ExternT,State>::~codecvt
NAME
std::codecvt<InternT,ExternT,State>::~codecvt - std::codecvt<InternT,ExternT,State>::~codecvt
Synopsis
Defined in header <locale>
protected: ~codecvt();
Destructs a std::codecvt facet. This destructor is protected and virtual (due to base_class destructor being virtual). An object of type std::codecvt, 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::codecvt and implements a public destructor.
Example
// Run this code
#include <iostream>
#include <locale>
struct Destructible_codecvt : public std::codecvt<wchar_t, char, std::mbstate_t>
{
Destructible_codecvt(std::size_t refs = 0) : codecvt(refs) {}
// note: the implicit destructor is public
};
int main()
{
Destructible_codecvt dc;
// std::codecvt<wchar_t> c; // compile error: protected destructor
}
Pages related to std::codecvt<InternT,ExternT,State>::~codecvt
- std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv (3) - std::codecvt<InternT,ExternT,State>::always_noconv,do_always_noconv
- std::codecvt<InternT,ExternT,State>::codecvt (3) - std::codecvt<InternT,ExternT,State>::codecvt
- std::codecvt<InternT,ExternT,State>::encoding,do_encoding (3) - std::codecvt<InternT,ExternT,State>::encoding,do_encoding
- std::codecvt<InternT,ExternT,State>::in,std::codecvt<InternT,ExternT,State>::do_in (3) - std::codecvt<InternT,ExternT,State>::in,std::codecvt<InternT,ExternT,State>::do_in
- std::codecvt<InternT,ExternT,State>::length,do_length (3) - std::codecvt<InternT,ExternT,State>::length,do_length
- std::codecvt<InternT,ExternT,State>::max_length,do_max_length (3) - std::codecvt<InternT,ExternT,State>::max_length,do_max_length
- std::codecvt<InternT,ExternT,State>::out,do_out (3) - std::codecvt<InternT,ExternT,State>::out,do_out
- std::codecvt<InternT,ExternT,State>::unshift,do_unshift (3) - std::codecvt<InternT,ExternT,State>::unshift,do_unshift
- std::codecvt (3) - std::codecvt
- std::codecvt_base (3) - std::codecvt_base
- std::codecvt_byname (3) - std::codecvt_byname
- std::codecvt_mode (3) - std::codecvt_mode
- std::codecvt_utf8 (3) - std::codecvt_utf8
- std::codecvt_utf8_utf16 (3) - std::codecvt_utf8_utf16
- std::codecvt_utf16 (3) - std::codecvt_utf16
- std::collate (3) - std::collate