time_put_byname 类

一种派生类模板,用于描述一个可充当类型 time_put< CharType, OutputIterator > 的区域设置 Facet 的对象。

语法

template <class CharType, class OutIt = ostreambuf_iterator<CharType, char_traits<CharType>>>
class time_put_byname : public time_put<CharType, OutputIterator>
{
public:
    explicit time_put_byname(
    const char* _Locname,
    size_t _Refs = 0);

    explicit time_put_byname(
    const string& _Locname,
    size_t _Refs = 0);

protected:
    virtual ~time_put_byname();

};

参数

_Locname
区域设置名称。

_Refs
初始引用计数。

备注

其行为由已命名的区域设置 _Locname 决定。 每个构造函数使用 time_put<CharType, OutputIterator>(_Refs) 初始化其基对象。

要求

标头:<locale>

命名空间: std

另请参阅

C++ 标准库中的线程安全