moneypunct_byname Class

描述对象可以充当特定区域设置 moneypunct 方面,启用格式设置货币输入字段或货币输出字段的派生模板选件类。

template<class CharType, bool Intl = false>
class moneypunct_byname : public moneypunct<CharType, Intl>
{
public:
    explicit moneypunct_byname(
        const char *_Locname,
        size_t _Refs = 0
    );
    explicit moneypunct_byname(
        const string& _Locname,
        size_t _Refs = 0
    ); 
protected:
    virtual ~moneypunct_byname();
};

备注

命名区域设置确定其行为 _Locname。 每个构造函数初始化其与 moneypunct<CharType, Intl>(_Refs)的基对象。

要求

标头: <locale>

命名空间: std

请参见

参考

线程安全性对标准C++库中