Compartilhar via


moneypunct::do_pos_format

A protected virtual member function that is called to return a locale-specific rule for formatting outputs with positive amounts.

virtual pattern do_pos_format( ) const;

Return Value

The protected virtual member function returns a locale-specific rule for determining how to generate a monetary output field for a positive amount. (It also determines how to match the components of a monetary input field.) The encoding is the same as for do_neg_format.

The template version of moneypunct<CharType, Inputlterator> returns {money_base::symbol, money_base::sign, money_base::value, money_base::none}.

Example

See the example for pos_format, where the virtual member function is called by pos_format.

Requirements

Header: <locale>

Namespace: std

See Also

Reference

moneypunct Class

Other Resources

moneypunct Members