about cout << flush

Hello,

Can anyone explain how does "cout << flush" is overloaded as "flush(cout)"?

What's the function prototype?

Thanks
Brian
std::flush is a manipulator that calls std::ostream::flush
that is, cout << flush; is the same as cout.flush();
flush makes sure that the buffer is cleared and the characters are written to their destination
http://www.cplusplus.com/reference/iostream/manipulators/flush/
http://www.cplusplus.com/reference/iostream/ostream/flush/
Topic archived. No new replies allowed.