std::basic_filebuf<CharT,Traits>::overflow (3) - Linux Manuals
std::basic_filebuf<CharT,Traits>::overflow: std::basic_filebuf<CharT,Traits>::overflow
Command to display std::basic_filebuf<CharT,Traits>::overflow
manual in Linux: $ man 3 std::basic_filebuf<CharT,Traits>::overflow
NAME
std::basic_filebuf<CharT,Traits>::overflow - std::basic_filebuf<CharT,Traits>::overflow
Synopsis
protected:
virtual int_type overflow ( int_type c = Traits::eof() );
Writes some data from the put area to the associated character sequence (to the file).
Behaves like the base class std::basic_streambuf::overflow, except that to write the data, first uses std::codecvt::out of the imbued locale to convert the characters into external (possibly multibyte) representation, stored in a temporary buffer (allocated as large as necessary), then uses file I/O to copy all fully-converted bytes into the file.
If std::codecvt::always_noconv is true, the call to std::codecvt::out may be skipped.
If the conversion fails with std::codecvt_base::error, returns Traits::eof() without attempting any output.
If the associated file is not open (is_open() == false), returns Traits::eof() before doing anything.
Parameters
(none)
Return value
Traits::not_eof(c) to indicate success or Traits::eof() to indicate failure.
Example
This section is incomplete
Reason: no example
See also
overflow writes characters to the associated output sequence from the put area
(virtual protected member function of std::basic_streambuf<CharT,Traits>)
[virtual]
underflow reads from the associated file
(virtual protected member function)
[virtual]
Pages related to std::basic_filebuf<CharT,Traits>::overflow
- std::basic_filebuf<CharT,Traits>::open (3) - std::basic_filebuf<CharT,Traits>::open
- std::basic_filebuf<CharT,Traits>::operator= (3) - std::basic_filebuf<CharT,Traits>::operator=
- std::basic_filebuf<CharT,Traits>::basic_filebuf (3) - std::basic_filebuf<CharT,Traits>::basic_filebuf
- std::basic_filebuf<CharT,Traits>::close (3) - std::basic_filebuf<CharT,Traits>::close
- std::basic_filebuf<CharT,Traits>::imbue (3) - std::basic_filebuf<CharT,Traits>::imbue
- std::basic_filebuf<CharT,Traits>::is_open (3) - std::basic_filebuf<CharT,Traits>::is_open
- std::basic_filebuf<CharT,Traits>::pbackfail (3) - std::basic_filebuf<CharT,Traits>::pbackfail
- std::basic_filebuf<CharT,Traits>::seekoff (3) - std::basic_filebuf<CharT,Traits>::seekoff
- std::basic_filebuf<CharT,Traits>::seekpos (3) - std::basic_filebuf<CharT,Traits>::seekpos
- std::basic_filebuf<CharT,Traits>::setbuf (3) - std::basic_filebuf<CharT,Traits>::setbuf
- std::basic_filebuf<CharT,Traits>::showmanyc (3) - std::basic_filebuf<CharT,Traits>::showmanyc
- std::basic_filebuf<CharT,Traits>::swap (3) - std::basic_filebuf<CharT,Traits>::swap
- std::basic_filebuf<CharT,Traits>::sync (3) - std::basic_filebuf<CharT,Traits>::sync
- std::basic_filebuf<CharT,Traits>::uflow (3) - std::basic_filebuf<CharT,Traits>::uflow
- std::basic_filebuf<CharT,Traits>::underflow (3) - std::basic_filebuf<CharT,Traits>::underflow
- std::basic_filebuf<CharT,Traits>::~basic_filebuf (3) - std::basic_filebuf<CharT,Traits>::~basic_filebuf
- std::basic_filebuf (3) - std::basic_filebuf
- std::basic_fstream (3) - std::basic_fstream