We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

<iomanip> get_money

Extracts a monetary value from a stream using the desired format, and returns the value in a parameter.

template<class Money>
    T7 get_money(
        Money& _Amount, 
        bool _Intl


The extracted monetary value.


If true, use international format. The default value is false.

Returns the stream str.

The manipulator returns an object that, when extracted from the stream str, behaves as a formatted input function that calls the member function get for the locale facet money_get associated with str, using _Intl to indicate international format. If successful, the call stores in _Amount the extracted monetary value. The manipulator then returns str.

Money must be of type long double or an instantiation of basic_string with the same element and traits parameters as str.

Header: <iomanip>

Namespace: std