Adrian Maire
Adrian Maire

Reputation: 14815

What are std::filebuf equivalent of ifstream::eof ::fail and ::tellg

Is there any equivalent to following functions if using std::filebuf? :

std::ifstream::eof
std::ifstream::fail
std::ifstream::tellg

If yes, which?

Upvotes: 2

Views: 146

Answers (1)

Lightness Races in Orbit
Lightness Races in Orbit

Reputation: 385088

There aren't any. Those things relate to streams, not the data buffer used by those streams.

The entire purpose of std::ifstream is to add features like that on top of the std::filebuf.

Upvotes: 4

Related Questions