Questions tagged [streambuf]

std::streambuf is the stream buffer type used by C++ iostreams.

C++ iostreams use a stream buffer to do any buffering of characters, manage the stream position and transport characters to/from an external device such as a file.

Use this tag for questions about std::streambuf, the wide-character equivalent std::wstreambuf, or the class template std::basic_streambuf. The tag might also be relevant.

152 questions
-1
votes
1 answer

C++ how to write a ifstream for multiple files?

So I have several files that form a contingent number of lines, so let's call them file1, file2, file3 and so forth. What I want to do is to create a istream class which streams all the files as if they were one. One thing i got is not to subclass…
Kai
  • 376
  • 1
  • 4
  • 17
-1
votes
1 answer

Writing custom basic_streambuf

After some time implementing my own streambuf I askes myself if you can use different types for the basic_streambuf like double. Are there any experiences and use cases here?
Gustavo
  • 919
  • 11
  • 34
1 2 3
…
10
11