Namespaces
Variants

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

From cppreference.net
Iterator library
Iterator concepts
Iterator primitives
Algorithm concepts and utilities
Indirect callable concepts
Common algorithm requirements
(C++20)
(C++20)
(C++20)
Utilities
(C++20)
Iterator adaptors
Range access
(C++11) (C++14)
(C++14) (C++14)
(C++11) (C++14)
(C++14) (C++14)
(C++17) (C++20)
(C++17)
(C++17)
Definiert im 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) (bis C++20)
friend bool operator == ( const istreambuf_iterator & lhs,
std:: default_sentinel_t ) ;
(3) (seit C++20)

Überprüft, ob sowohl lhs als auch rhs gültig sind oder beide ungültig sind, unabhängig von den verwendeten Streampuffer-Objekten.

1) Entspricht lhs. equal ( rhs ) .
2) Entspricht ! lhs. equal ( rhs ) .
3) Prüft, ob lhs ungültig ist. Entspricht lhs. equal ( istreambuf_iterator { } ) .
Diese Funktion ist für gewöhnliches unqualified oder qualified lookup nicht sichtbar und kann nur durch argument-dependent lookup gefunden werden, wenn std::istreambuf_iterator<CharT,Traits> eine assoziierte Klasse der Argumente ist.

Der != -Operator wird synthetisiert aus operator== .

(seit C++20)

Parameter

lhs, rhs - zu vergleichende Streampuffer-Iteratoren

Rückgabewert

1) Das Ergebnis von lhs. equal ( rhs ) .
2) Das Ergebnis von ! lhs. equal ( rhs ) .
3) Das Ergebnis von lhs. equal ( istreambuf_iterator { } ) .

Exceptions

Kann implementierungsdefinierte Ausnahmen auslösen.