moneypunct_byname Class


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

A derived template class that describes an object that can serve as a moneypunct facet of a given locale, enabling the formatting monetary input field or monetary output fields.

template <class CharType, bool Intl = false>
class moneypunct_byname : public moneypunct<CharType, Intl>
    explicit moneypunct_byname(
    const char* _Locname,
    size_t _Refs = 0);

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

    virtual ~moneypunct_byname();


Its behavior is determined by the named locale _Locname. Each constructor initializes its base object with moneypunct<CharType, Intl>( _Refs).

Header: <locale>

Namespace: std

Thread Safety in the C++ Standard Library