cpp / latest / iterator / istreambuf_iterator / equal.html /

std::istreambuf_iterator<CharT,Traits>::equal

bool equal( const istreambuf_iterator& it ) const;

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

Parameters

it - another stream buffer iterator to compare to

Return value

true if both *this and it are valid, or both are invalid, false otherwise.

Exceptions

May throw implementation-defined exceptions.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/iterator/istreambuf_iterator/equal