cpp/iterator/istreambuf iterator/equal

Checks whether both and  are valid, or both are invalid, regardless of the stream buffer objects they use.

Return value
if both and  are valid, or both are invalid,  otherwise.