← Back to context

Comment by tedunangst

4 years ago

Are there complexity guarantees for std::istream::operator>>?

No, or at least not in general, because you can overload it for your custom types with whatever terrible implementation you like.

  • This is true in essentially the same way for C's FILE, which is the point I think Ted is insinuating.