Почему `std::istream::seekg()` влияет на поведение `std::istreambuf_iterator`?C++

Программы на C++. Форум разработчиков
Anonymous
Почему `std::istream::seekg()` влияет на поведение `std::istreambuf_iterator`?

Сообщение Anonymous »

Почему std::istream::seekg() влияет на поведение std::istreambuf_iterator?
Я внимательно прочитал введение о std: :istreambuf_iterator на cppreference, но прямого ответа на этот вопрос нет.
Вот фрагмент кода:

Код: Выделить всё

#include 
#include 
#include 
#include 

int main()
{
//with seekg to the end
{
std::cout 

Подробнее здесь: [url]https://stackoverflow.com/questions/78544122/why-does-stdistreamseekg-affect-the-behavior-of-stdistreambuf-iterato[/url]

Вернуться в «C++»