money_get

template<class E,
    class InIt = istreambuf_iterator<E> >
    class money_get : public locale::facet {
public:
    typedef E char_type;
    typedef InIt iter_type;
    typedef basic_string<E> string_type;
    explicit money_get(size_t refs = 0);
    iter_type get(iter_type first, iter_type last, bool intl,
        ios_base& x, ios_base::iostate& st, long double& val) const;
    iter_type get(iter_type first, iter_type last, bool intl,
        ios_base& x, ios_base::iostate& st, string_type& val) const;
    static locale::id id;
protected:
    ~money_get();
    virtual iter_type do_get(iter_type first, iter_type last, bool intl,
        ios_base& x, ios_base::iostate& st, string_type& val) const;
    virtual iter_type do_get(iter_type first, iter_type last, bool intl,
        ios_base& x, ios_base::iostate& st, long double& val) const;
    };

The template class describes an object that can serve as a locale facet, to control conversions of sequences of type E to monetary values.

As with any locale facet, the static object id has an initial stored value of zero. The first attempt to access its stored value stores a unique positive value in id.