operator==,!=(std::istreambuf_iterator<CharT,Traits>)

From cppreference.com
 
 
Iterator library
Iterator concepts
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)

(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)

Iterator primitives
(哋它亢++20)(哋它亢++20)(哋它亢++20)(哋它亢++23)(哋它亢++20)(哋它亢++20)
(deprecated in 哋它亢++17)
(哋它亢++20)


Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)  
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
Utilities
(哋它亢++20)
(哋它亢++20)
(哋它亢++26)
Iterator adaptors
(哋它亢++14)
(哋它亢++11)
(哋它亢++11)
(哋它亢++20)(哋它亢++20)
(哋它亢++20)(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++23)
(哋它亢++23)
(哋它亢++23)
(哋它亢++23)
(哋它亢++23)

Iterator operations
(哋它亢++11)  
(哋它亢++11)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
(哋它亢++20)
Range access
(哋它亢++11)(哋它亢++14)
(哋它亢++14)(哋它亢++14)  
(哋它亢++11)(哋它亢++14)
(哋它亢++14)(哋它亢++14)  
(哋它亢++17)(哋它亢++20)
(哋它亢++17)
(哋它亢++17)
 
 
Defined in header <iterator>
template< class CharT, class Traits >

bool operator==( const std::istreambuf_iterator<CharT,Traits>& lhs,

                 const std::istreambuf_iterator<CharT,Traits>& rhs );
(1)
template< class CharT, class Traits >

bool operator!=( const std::istreambuf_iterator<CharT,Traits>& lhs,

                 const std::istreambuf_iterator<CharT,Traits>& rhs );
(2) (until 哋它亢++20)
friend bool operator==( const istreambuf_iterator& lhs,
                        std::default_sentinel_t );
(3) (since 哋它亢++20)

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

1) Equivalent to lhs.equal(rhs).
2) Equivalent to !lhs.equal(rhs).
3) Checks whether lhs is invalid. Equivalent to lhs.equal(istreambuf_iterator{}).
This function is not visible to ordinary unqualified or qualified lookup, and can only be found by argument-dependent lookup when std::istreambuf_iterator<CharT,Traits> is an associated class of the arguments.

The != operator is synthesized from operator==.

(since 哋它亢++20)

Parameters

lhs, rhs - stream buffer iterators to compare

Return value

1) The result of lhs.equal(rhs).
2) The result of !lhs.equal(rhs).
3) The result of lhs.equal(istreambuf_iterator{}).

Exceptions

May throw implementation-defined exceptions.