Compartilhar via


numpunct Class

A template class that describes an object that can serve as a local facet to describe the sequences of type CharType used to represent information about the formatting and punctuation of numeric and Boolean expressions.

template <class CharType>
   class numpunct : public locale::facet;

Parameters

  • CharType
    The type used within a program to encode characters in a locale.

Remarks

As with any locale facet, the static object ID has an initial stored value of zero. The first attempt to access its stored value stores a unique positive value in id.

Constructors

numpunct

The constructor for objects of type numpunct.

Typedefs

char_type

A type that is used to describe a character used by a locale.

string_type

A type that describes a string containing characters of type CharType.

Member Functions

decimal_point

Returns a locale-specific element to use as a decimal point.

do_decimal_point

A protected virtual member function that is called to return a locale-specific element to use as a decimal point.

do_falsename

A protected virtual member function that is called to return a string to use as a text representation of the value false.

do_grouping

A protected virtual member function that is called to return a locale-specific rule for determining how digits are grouped to the left of any decimal point.

do_thousands_sep

A protected virtual member function that is called to return a locale-specific element to use as a thousands separator.

do_truename

A protected virtual member function that is called to return a string to use as a text representation of the value true.

falsename

Returns a string to use as a text representation of the value false.

grouping

Returns a locale-specific rule for determining how digits are grouped to the left of any decimal point.

thousands_sep

Returns a locale-specific element to use as a thousands separator.

truename

Returns a string to use as a text representation of the value true.

Requirements

Header: <locale>

Namespace: std

See Also

Reference

<locale>

facet Class

Thread Safety in the C++ Standard Library