num_get


class template
<locale>
template <class charT, class InputIterator = istreambuf_iterator<charT> > class num_get;

Facet to parse numeric values

num_get


The num_get standard facet is used to parse sequences of character to obtain numerical values. It is called by standard input streams (such as istream) to obtain formatted numerical values with the extractor operator ( ).

num_get objects are prevented to be locally constructed by having a protected destructor. Only those installed in locale objects should be used through mechanisms such as
use_facet.

This template class has two template parameters, representing the character type and the iterator type. They are referred inside this entire reference as charT and InputIterator, respectively:
 
template <class charT, class InputIterator = istreambuf_iterator<charT> > num_get;


The class defines two member alias types for these types: num_get::char_type and num_get::iter_type, respectively.

The character type is the type of the characters in the sequence from which characters are to interpreted.

The iterator type is the type of the input iterators pointing to the beginning, end and final elements in the character sequence.
Notice that this defaults to the istreambuf_iterator type for the first template parameter charT, although the template can be instantiated for any other type of input iterator.

Public members

It includes the following public member functions:


Along with the following public member types:


Virtual protected members