std::collate<CharT>::~collate (3) - Linux Manuals
std::collate<CharT>::~collate: std::collate<CharT>::~collate
Command to display std::collate<CharT>::~collate
manual in Linux: $ man 3 std::collate<CharT>::~collate
NAME
std::collate<CharT>::~collate - std::collate<CharT>::~collate
Synopsis
Defined in header <locale>
protected: ~collate();
Destructs a std::collate facet. This destructor is protected and virtual (due to base_class destructor being virtual). An object of type std::collate, 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::collate and implements a public destructor.
Example
// Run this code
#include <iostream>
#include <locale>
struct Destructible_collate : public std::collate<wchar_t>
{
Destructible_collate(std::size_t refs = 0) : collate(refs) {}
// note: the implicit destructor is public
};
int main()
{
Destructible_collate dc;
// std::collate<wchar_t> c; // compile error: protected destructor
}
Pages related to std::collate<CharT>::~collate
- std::collate<CharT>::collate (3) - std::collate<CharT>::collate
- std::collate<CharT>::compare,std::collate<CharT>::do_compare (3) - std::collate<CharT>::compare,std::collate<CharT>::do_compare
- std::collate<CharT>::hash,std::collate<CharT>::do_hash (3) - std::collate<CharT>::hash,std::collate<CharT>::do_hash
- std::collate<CharT>::transform,do_transform (3) - std::collate<CharT>::transform,do_transform
- std::collate (3) - std::collate
- std::collate_byname (3) - std::collate_byname
- std::codecvt (3) - std::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