Namespaces
Variants

std::ostreambuf_iterator<CharT,Traits>:: failed

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)
bool failed ( ) const throw ( ) ;
(bis C++11)
bool failed ( ) const noexcept ;
(seit C++11)

Gibt true zurück, wenn der Iterator das Dateiende erreicht hat, das heißt, wenn ein vorheriger Aufruf von std::basic_streambuf::sputc (durch operator= durchgeführt) Traits :: eof zurückgegeben hat.

Parameter

(keine)

Rückgabewert

true wenn dieser Iterator die End-of-File-Bedingung bei der Ausgabe erreicht hat, false andernfalls.

Beispiel