读书人

the usage of quot;const sentry _OK(*thi

发布时间: 2013-07-09 09:50:47 作者: rapoo

the usage of "const sentry _OK(*this)"
I found class "sentry" was defined both in istream and ostream,the usage is like the photes,
what is the usage of "const sentry _OK(*this)" ?
the usage of the usage of
[解决办法]
take a look the links bellow:

http://www.cplusplus.com/reference/istream/istream/sentry/
http://www.cplusplus.com/reference/ostream/ostream/sentry/

there are two classes, btw.

读书人网 >C++

热点推荐