template <class moneyT>/*unspecified*/ put_money (const moneyT& mon, bool intl = false);
true
), it calls money_put::put (using the stream's selected locale) to perform both the formatting and the insertion operations, adjusting the stream's internal state flags accordingly. Finally, it destroys the sentry object before returning.<iomanip>
.long double
or a basic_string instantiation.true
for international representations, false
otherwise.flag | error |
---|---|
eofbit | - |
failbit | The function failed to format mon (it may also be set if the construction of sentry failed). |
badbit | Either the insertion on the stream failed, or some other error happened (such as when this function catches an exception thrown by an internal operation). When set, the integrity of the stream may have been affected. |
|
|