Parse a decimal value from the specified iterator range into value.

Synopsis

Declared in <bdldfp_decimal.h>

virtual
iter_type
do_get(
    iter_type begin,
    iter_type end,
    std::ios_base& str,
    std::ios_base::iostate& err,
    Decimal32& value) const;

Description

Interpret characters from the half‐open iterator range denoted by the specified begin and end, generate a decimal floating‐point number and store it into the specified value. During conversion the formatting flags of the specified str (str.flags()) are obeyed; character classifications are determined by the bsl::ctype while punctuation characters are determined by the bsl::numpunct facet imbued to the str stream‐base. Use the specified err to report back failure or EOF streams states. For further, more detailed information please consult the section [lib.facet.num.get.virtuals]of the C++ Standard. Note that for the conversions to the Decimal32, 64 and 128 types the conversion specifiers are %Hg, %Dg and %DDg, respectively. Also note that these (possibly overridden) do_get virtual function are used by every formatted C++ stream input operator call (in >> aDecNumber).

Return Value

an iterator positioned after the last character consumed

Parameters

Name

Description

begin

start of the input iterator range

end

end of the input iterator range

str

character sequence to parse

err

stream error state to update

value

object to receive the parsed value

Created with MrDocs