Template Class Money_get

The template class money_get is used for locale monetary input routines.

Listing: Template Class Money_get Synopsis
namespace std {
template <class charT,

class InputIterator = istreambuf_iterator<charT> > 

class money_get : public locale::facet {

public:

typedef charT char_type;

typedef InputIterator iter_type;

typedef basic_string<charT> string_type;

explicit money_get(size_t refs = 0);

iter_type get(iter_type s, iter_type end, bool intl,

ios_base& f, ios_base::iostate& err, 

long double& units) const; 

iter_type get(iter_type s, iter_type end, bool intl,

ios_base& f, ios_base::iostate& err, 

string_type& digits) const; 

static locale::id id;

protected:

~money_get(); //virtual 

virtual iter_type do_get(iter_type, iter_type, bool, ios_base&,

ios_base::iostate& err, long double& units) const; 

virtual iter_type do_get(iter_type, iter_type, bool, ios_base&,

ios_base::iostate& err, string_type& digits) const; 

};

}