SYNOPSIS

Inherits std::locale::facet.

Public Types

typedef _CharT char_type

typedef _InIter iter_type

Public Member Functions

num_get (size_t __refs=0)

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, bool &__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, void *&__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, long &__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned short &__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned int &__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long &__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, long long &__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long long &__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, float &__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, double &__v) const

iter_type get (iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, long double &__v) const

Static Public Attributes

static locale::id id

Protected Member Functions

virtual ~num_get ()

iter_type _M_extract_float (iter_type, iter_type, ios_base &, ios_base::iostate &, string &) const

template<typename _ValueT > iter_type _M_extract_int (iter_type, iter_type, ios_base &, ios_base::iostate &, _ValueT &) const

template<typename _CharT2 > __gnu_cxx::__enable_if

< __is_char< _CharT2 >

::__value, int >::__type _M_find (const _CharT2 *, size_t __len, _CharT2 __c) const "

template<typename _CharT2 > __gnu_cxx::__enable_if

<!__is_char< _CharT2 >

::__value, int >::__type _M_find (const _CharT2 *__zero, size_t __len, _CharT2 __c) const "

virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &, bool &) const

virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, long &__v) const

virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned short &__v) const

virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned int &__v) const

virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long &__v) const

virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, long long &__v) const

virtual iter_type do_get (iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long long &__v) const

virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &, float &) const

virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &, double &) const

virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &, long double &) const

virtual iter_type do_get (iter_type, iter_type, ios_base &, ios_base::iostate &, void *&) const

Static Protected Member Functions

static __c_locale _S_clone_c_locale (__c_locale &__cloc) throw ()

static void _S_create_c_locale (__c_locale &__cloc, const char *__s, __c_locale __old=0)

static void _S_destroy_c_locale (__c_locale &__cloc)

static __c_locale _S_get_c_locale ()

static const char * _S_get_c_name () throw ()

static __c_locale _S_lc_ctype_c_locale (__c_locale __cloc, const char *__s)

Detailed Description

template<typename _CharT, typename _InIter>singleton std::num_get< _CharT, _InIter >

Primary class template num_get.

This facet encapsulates the code to parse and return a number from a string. It is used by the istream numeric extraction operators.

The num_get template uses protected virtual functions to provide the actual results. The public accessors forward the call to the virtual functions. These virtual functions are hooks for developers to implement the behavior they require from the num_get facet.

Definition at line 1915 of file locale_facets.h.

Member Typedef Documentation

template<typename _CharT , typename _InIter > typedef _CharT \fBstd::num_get\fP< _CharT, _InIter >::\fBchar_type\fP

Public typedefs.

Definition at line 1921 of file locale_facets.h.

template<typename _CharT , typename _InIter > typedef _InIter \fBstd::num_get\fP< _CharT, _InIter >::\fBiter_type\fP

Public typedefs.

Definition at line 1922 of file locale_facets.h.

Constructor & Destructor Documentation

template<typename _CharT , typename _InIter > \fBstd::num_get\fP< _CharT, _InIter >::\fBnum_get\fP (size_t__refs = \fC0\fP)\fC [inline]\fP, \fC [explicit]\fP

Constructor performs initialization. This is the constructor provided by the standard.

Parameters:

__refs Passed to the base facet class.

Definition at line 1936 of file locale_facets.h.

template<typename _CharT , typename _InIter > virtual \fBstd::num_get\fP< _CharT, _InIter >::~\fBnum_get\fP ()\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP

Destructor.

Definition at line 2108 of file locale_facets.h.

Member Function Documentation

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP, \fBiter_type\fP, \fBios_base\fP &, \fBios_base::iostate\fP &, bool &) const\fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Referenced by std::num_get< _CharT, _InIter >::get().

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP__beg, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, long &__v) const\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2176 of file locale_facets.h.

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP__beg, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, unsigned short &__v) const\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2181 of file locale_facets.h.

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP__beg, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, unsigned int &__v) const\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2186 of file locale_facets.h.

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP__beg, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, unsigned long &__v) const\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2191 of file locale_facets.h.

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP__beg, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, long long &__v) const\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2197 of file locale_facets.h.

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP__beg, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, unsigned long long &__v) const\fC [inline]\fP, \fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2202 of file locale_facets.h.

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP, \fBiter_type\fP, \fBios_base\fP &, \fBios_base::iostate\fP &, float &) const\fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP, \fBiter_type\fP, \fBios_base\fP &, \fBios_base::iostate\fP &, double &) const\fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP, \fBiter_type\fP, \fBios_base\fP &, \fBios_base::iostate\fP &, long double &) const\fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

template<typename _CharT , typename _InIter > virtual \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::do_get (\fBiter_type\fP, \fBiter_type\fP, \fBios_base\fP &, \fBios_base::iostate\fP &, void *&) const\fC [protected]\fP, \fC [virtual]\fP

Numeric parsing. Parses the input stream into the variable v. This function is a hook for derived classes to change the value returned.

See also:

get() for more details.

Parameters:

__beg Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, bool &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the bool v. It does so by calling num_get::do_get().

If ios_base::boolalpha is set, attempts to read ctype<CharT>::truename() or ctype<CharT>::falsename(). Sets v to true or false if successful. Sets err to ios_base::failbit if reading the string fails. Sets err to ios_base::eofbit if the stream is emptied.

If ios_base::boolalpha is not set, proceeds as with reading a long, except if the value is 1, sets v to true, if the value is 0, sets v to false, and otherwise set err to ios_base::failbit.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 1962 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, long &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get().

Parsing is affected by the flag settings in io.

The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used.

Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 1999 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, unsigned short &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get().

Parsing is affected by the flag settings in io.

The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used.

Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2004 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, unsigned int &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get().

Parsing is affected by the flag settings in io.

The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used.

Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2009 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, unsigned long &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get().

Parsing is affected by the flag settings in io.

The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used.

Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2014 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, long long &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get().

Parsing is affected by the flag settings in io.

The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used.

Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2020 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, unsigned long long &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get().

Parsing is affected by the flag settings in io.

The basic parse is affected by the value of io.flags() & ios_base::basefield. If equal to ios_base::oct, parses like the scanf o specifier. Else if equal to ios_base::hex, parses like X specifier. Else if basefield equal to 0, parses like the i specifier. Otherwise, parses like d for signed and u for unsigned types. The matching type length modifier is also used.

Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2025 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, float &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get().

The input characters are parsed like the scanf g specifier. The matching type length modifier is also used.

The decimal point character used is numpunct::decimal_point(). Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2059 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, double &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get().

The input characters are parsed like the scanf g specifier. The matching type length modifier is also used.

The decimal point character used is numpunct::decimal_point(). Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2064 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, long double &__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the integral variable v. It does so by calling num_get::do_get().

The input characters are parsed like the scanf g specifier. The matching type length modifier is also used.

The decimal point character used is numpunct::decimal_point(). Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2069 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

template<typename _CharT , typename _InIter > \fBiter_type\fP \fBstd::num_get\fP< _CharT, _InIter >::get (\fBiter_type\fP__in, \fBiter_type\fP__end, \fBios_base\fP &__io, \fBios_base::iostate\fP &__err, void *&__v) const\fC [inline]\fP

Numeric parsing. Parses the input stream into the pointer variable v. It does so by calling num_get::do_get().

The input characters are parsed like the scanf p specifier.

Digit grouping is interpreted according to numpunct::grouping() and numpunct::thousands_sep(). If the pattern of digit groups isn't consistent, sets err to ios_base::failbit.

Note that the digit grouping effect for pointers is a bit ambiguous in the standard and shouldn't be relied on. See DR 344.

If parsing the string yields a valid value for v, v is set. Otherwise, sets err to ios_base::failbit and leaves v unaltered. Sets err to ios_base::eofbit if the stream is emptied.

Parameters:

__in Start of input stream.

__end End of input stream.

__io Source of locale and flags.

__err Error flags to set.

__v Value to format and insert.

Returns:

Iterator after reading.

Definition at line 2102 of file locale_facets.h.

References std::num_get< _CharT, _InIter >::do_get().

Member Data Documentation

template<typename _CharT , typename _InIter > \fBlocale::id\fP \fBstd::num_get\fP< _CharT, _InIter >::id\fC [static]\fP

Numpunct facet id.

Definition at line 1926 of file locale_facets.h.

Author

Generated automatically by Doxygen for libstdc++ from the source code.