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! |