Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/io/basic istream/sync"

From cppreference.com
< cpp‎ | io‎ | basic istream
m (Text replace - "{{params}}" to "===Parameters===")
m (Text replace - "{{see also}}" to "===See also===")
Line 24: Line 24:
  
 
<!-- ======== -->
 
<!-- ======== -->
{{see also}}
+
===See also===
 
{{dcl list begin}}
 
{{dcl list begin}}
 
{{dcl list template | cpp/io/basic_ostream/dcl list flush | mem=std::basic_ostream}}
 
{{dcl list template | cpp/io/basic_ostream/dcl list flush | mem=std::basic_ostream}}
 
{{dcl list end}}
 
{{dcl list end}}

Revision as of 18:00, 2 August 2011

Template:cpp/io/basic istream/sidebar

int sync();

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

Contents

Parameters

Template:param none

Return value

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.

Example

Template:example cpp

See also

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