次の方法で共有


money_base Class

The class describes an enumeration and a structure common to all specializations of template class moneypunct.

struct money_base : public locale::facet
{
        enum
        {
                symbol = '$',
               sign = '+',
               space = ' ',
               value = 'v',
               none = 'x'
        };
        typedef int part;
        struct pattern
        {
                char field[_PATTERN_FIELD_SIZE];
        };
        money_base(
                size_t _Refs = 0
        );
    ~money_base();
};

Remarks

The enumeration part describes the possible values in elements of the array field in the structure pattern. The values of part are:

  • none to match zero or more spaces or generate nothing.

  • sign to match or generate a positive or negative sign.

  • space to match zero or more spaces or generate a space.

  • symbol to match or generate a currency symbol.

  • value to match or generate a monetary value.

Requirements

Header: <locale>

Namespace: std

See Also

Concepts

<locale> Members

Thread Safety in the Standard C++ Library