Namespaces
Variants
Views
Actions

std::basic_istream<CharT,Traits>::sync

From cppreference.com
< cpp‎ | io‎ | basic istream
Revision as of 06:30, 4 May 2011 by WikiSysop (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/io/basic istream/sidebar

int sync();

Fills the input cache buffer with data from the underlying input device.

Template:params Template:param none

Template:returns

If the stream is buffered and the function is successful, Template:cpp is returned. If the stream is unbuffered, Template:cpp is returned. In the case of error, Template:cpp is called and depending on exceptions bitmask, exception is thrown.

Template:example cpp

Template:see also

Template:cpp/io/basic ostream/dcl list flush