std::time_put::~time_put

来自cppreference.com
< cpp‎ | locale‎ | time put

定义于头文件 <locale>
protected: ~time_put();
自毁一个std::time_put方面。析构函数被保护和虚拟(由于基类析构函数是虚拟的)。 std::time_put类型的对象,最喜欢的方面,只能被摧毁,当最后std::locale对象,它实现这方面熄灭范围,或者如果一个用户定义的类派生自std::time_put和实现公共析构函数.
原文:
Destructs a std::time_put facet. This destructor is protected and virtual (due to 基类 destructor being virtual). An object of type std::time_put, 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::time_put and implements a public destructor.
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 为例

#include <iostream>
#include <locale>
struct Destructible_time_put : public std::time_put<wchar_t>
{
    Destructible_time_put(std::size_t refs = 0) : time_put(refs) {}
    ~Destructible_time_put() {}; // public dtor
};
int main()
{
    Destructible_time_put dc;
    // std::time_put<wchar_t> c;  // compile error: protected destructor
}