std::basic_...f::overflow(3)
π NAME π
std::basic_filebuf::overflow β std::basic_filebuf::overflow
okay so this is the std::basic_...f::overflow page from the C++ Standard Libary, and itβs giving protected-virtual-member-function realness. π The NAME is literally std::basic_filebuf::overflow, repeated because thatβs how the page does it. No cap.
β¨ Synopsis β¨
protected:
virtual int_type overflow ( int_type c = Traits::eof() );
This one writes some data from the put area to the associated character sequence (to the file). π«Ά
It behaves like the base class std::basic_streambuf::overflow, except that, to write the data, it 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. Iconic codecvt-to-file pipeline behavior, honestly.
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, it returns Traits::eof() without attempting any output. No output attempt, periodt.
If the associated file is not open (is_open() == false), it returns Traits::eof() before doing anything. π
πΈ Parameters πΈ
(none) β literally zero parameters, bestie.
π¦ Return value π¦
Traits::not_eof(c) to indicate success, or Traits::eof() to indicate failure. Thatβs the whole vibe check. β¨
π Example π
This section is incomplete Reason: no example
π₯ See also π₯
overflowβ writes characters to the associated output sequence from the put area[virtual](virtual protected member function ofstd::basic_streambuf<CharT,Traits>)underflowβ reads from the associated file[virtual](virtual protected member function)
β Category β
- Todo no example
source: cppreference.com Β· version/date: 2024.06.10 Β· page: std::basic_...f::overflow(3) β mwah, bestie, thatβs the whole manpage ππ§ββοΈ
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms