bool (1) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, bool& val) const; |
---|---|
long (2) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, long& val) const; |
unsigned short (3) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, unsigned short& val) const; |
unsigned int (4) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, unsigned int& val) const; |
unsigned long (5) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, unsigned long& val) const; |
float (6) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, float& val) const; |
double (7) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, double& val) const; |
long double (8) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, long double& val) const; |
pointer (9) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, void*& val) const; |
bool (1) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, bool& val) const; |
---|---|
long (2) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, long& val) const; |
unsigned short (3) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, unsigned short& val) const; |
unsigned int (4) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, unsigned int& val) const; |
unsigned long (5) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, unsigned long& val) const; |
float (6) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, float& val) const; |
double (7) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, double& val) const; |
long double (8) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, long double& val) const; |
pointer (9) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, void*& val) const; |
long long (10) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, long long& val) const; |
unsigned long long (11) | iter_type get (iter_type in, iter_type end, ios_base& str, ios_base::iostate& err, unsigned long long& val) const; |
err 中的值 | value in val | 描述 |
---|---|---|
goodbit | the value read | 成功(未到达 end)。 |
failbit | unspecified | 失败:字符序列不符合预期格式。 |
eofbit | one of the above | 操作期间到达了 end(无论成功还是失败)。 |
err 中的值 | value in val | 描述 |
---|---|---|
unchanged | the value read | 成功(未到达 end)。 |
failbit | 零 | 序列不符合预期格式。 |
numeric_limits::max() | 序列表示的值对于 val 的类型来说过大。 | |
numeric_limits::lowest() | 序列表示的负值对于 val 的类型来说过大。 | |
eofbit | one of the above | 操作期间到达了 end(无论成功还是失败)。 |
[in,end)
,它包含 in 和 end 之间的所有字符,包括 in 指向的字符,但不包括 end 指向的字符。
|
|
Please, enter PI: 3.14 Right! |