Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

money_put


money_putinherits fromlocale::facet

Summary

Monetary formatting facet for output.

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <locale>
template <class charT,
         class OutputIterator = ostreambuf_iterator<charT> >
class money_put;

Description

The money_put facet takes a long double value, or generic sequence of digits and writes out a formatted representation of the monetary value.

Interface

Types

char_type
iter_type
string_type

Constructors

explicit money_put(size_t refs = 0) 

Destructors

~money_put();  // virtual and protected

Static Members

static locale::id id; 

Public Member Functions

The public members of the money_put facet include an interface to protected members. Each public member put has a corresponding virtual protected member do_put.

iter_type 
put(iter_type s, bool intl, ios_base& f, char_type fill,
    long double units) const;
iter_type 
put(iter_type s, bool intl, ios_base& f, char_type fill,
    const string_type& digits) const; 

Protected Member Functions

virtual iter_type 
do_put(iter_type s, bool intl, ios_base& f, char_type fill, 
       long double units) const; 
virtual iter_type 
do_put(iter_type s, bool intl, ios_base& f, char_type fill,
       const string_type& digits) const; 

Example

See Also

locale, facets, money_get, moneypunct



Previous fileTop of documentContentsIndexNext file
©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998