Namespaces
Variants
Views
Actions

std::get_money

From cppreference.com
< cpp‎ | io‎ | manip
Revision as of 12:38, 11 January 2012 by Cubbi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/io/manip/sidebar

Defined in header <iomanip>
template< class MoneyT >
/*unspecified*/ get_money( MoneyT& mon, bool intl = false );
(since C++11)

When used in an expression Template:cpp, parses the character input as a monetary value, as specified by the Template:cpp facet of the locale currently imbued in in, and stores the value in mon.

This function behaves as a formatted input function.

Contents

Parameters

mon - variable where monetary value will be written. Can be either Template:cpp or Template:cpp
intl - expects to find optional international currency strings if Template:cpp, expects optional currency symbols otherwise

Return value

Returns an object of unspecified type such that if in is the name of an output stream of type Template:cpp, then the expression Template:cpp behaves as if the following code was executed:

Template:cpp

Example

Template:example cpp

See also

Template:cpp/locale/dcl list money getTemplate:cpp/io/manip/dcl list put money