Standard C++ Library Reference ISO/IEC (VERSION3)

num_get::num_get
explicit num_get(size_t refs = 0);
The constructor initializes its base object with locale::facet(refs).
num_put
template<class Elem, class OutIt = ostreambuf_iterator<Elem> >
class num_put : public locale::facet {
public:
typedef Elem char_type;
typedef OutIt iter_type;
explicit num_put(size_t refs = 0);
iter_type put(iter_type next, ios_base& iosbase,
Elem fill, long val) const;
iter_type put(iter_type next, ios_base& iosbase,
Elem fill, unsigned long val) const;
iter_type put(iter_type next, ios_base& iosbase,
Elem fill, double val) const;
iter_type put(iter_type next, ios_base& iosbase,
Elem fill, long double val) const;
iter_type put(iter_type next, ios_base& iosbase,
Elem fill, const void *val) const;
iter_type put(iter_type next, ios_base& iosbase,
Elem fill, bool val) const;
static locale::id id;
protected:
~num_put();
virtual iter_type do_put(iter_type next, ios_base& iosbase,
Elem fill, long val) const;
virtual iter_type do_put(iter_type next, ios_base& iosbase,
Elem fill, unsigned long val) const;
virtual iter_type do_put(iter_type next, ios_base& iosbase,
Elem fill, double val) const;
virtual iter_type do_put(iter_type next, ios_base& iosbase,
Elem fill, long double val) const;
virtual iter_type do_put(iter_type next, ios_base& iosbase,
Elem fill, const void *val) const;
virtual iter_type do_put(iter_type next, ios_base& iosbase,
Elem fill, bool val) const;
};
The template class describes an object that can serve as a locale facet, to control conversions of numeric values to
sequences of type Elem.
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.
num_put::char_type
typedef Elem char_type;
The type is a synonym for the template parameter Elem.