共用方式為


numpunct_byname Class

The derived template class describes an object that can serve as a numpunct facet of a given locale enabling the formatting and punctuation of numeric and Boolean expressions.

template<Class CharType>
    class numpunct_byname : public numpunct<Elem> {
public:
    explicit numpunct_byname(
        const char* _Locname,
        size_t _Refs = 0
    );
    explicit numpunct_byname(
        const string& _Locname,
        size_t _Refs = 0
    );
protected:
    virtual ~numpunct_byname( );
   };

Remarks

Its behavior is determined by the named locale _Locname. The constructor initializes its base object with numpunct<CharType>(_Refs).

Requirements

Header: <locale>

Namespace: std

See Also

Reference

Thread Safety in the Standard C++ Library

Other Resources

<locale> Members