Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Standard C++ Library Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

money_put

Module:  Standard C++ Library   Library:  Localization


money_put locale::facet

Local Index

Members

Summary

A monetary formatting facet

Synopsis

#include <locale>

namespace std {
  template <class charT,
           class OutputIterator = ostreambuf_iterator<charT> >
  class money_put;
}

Specializations

The primary template can be implicitly or explicitly specialized on any character type that satisfies the requirements on the type of the character used by iostream class templates, and on any iterator type that satisfies the requirements of Output Iterator.

Description

The money_put facet includes facilities for formatted output of monetary values.

Interface

Member Types

char_type
iter_type
string_type

Constructors

explicit money_put(size_t refs = 0) 

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() calls the corresponding virtual protected member do_put().

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

Protected Member Functions

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

Example

See Also

locale, Facets, money_get, moneypunct

Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems -- Programming Language C++, Section 22.2.6.2



Previous fileTop of DocumentContentsIndex pageNext file

Copyright (c) 1994-2006 Rogue Wave Software, a Quovadx Division.
Licensed under the Apache License, Version 2.0.
Contact Rogue Wave about documentation or support issues. You can also seek help from other developers through the Apache stdcxx community (see below).

For more information on the Rogue Wave Standard C++ Library under open source, see Section 1.2 of the user's guide.