std::istreambuf_iterator
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <iterator>
|
||
template< class CharT, class Traits = std::char_traits<CharT> > class istreambuf_iterator : public std::iterator< std::input_iterator_tag, CharT, typename Traits::off_type, /* unspecified, usually CharT* */, CharT > |
||
std::istreambuf_iterator é um iterador de entrada de passagem única, que lê os caracteres sucessivos a partir do objecto std::basic_streambuf para o qual foi construído. A operação de leitura actual é executada quando o iterador é incrementado, e não quando é dereferenced. O primeiro caractere pode ser lido quando o iterador é construído ou quando o dereferencing primeiro é feito. Caso contrário, dereferencing só retorna uma cópia do personagem mais recentemente li.Original:
std::istreambuf_iterator is a single-pass input iterator that reads successive characters from the std::basic_streambuf object for which it was constructed. The actual read operation is performed when the iterator is incremented, not when it is dereferenced. The first character may be read when the iterator is constructed or when the first dereferencing is done. Otherwise, dereferencing only returns a copy of the most recently read character.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
O padrão construído
std::istreambuf_iterator é conhecido como o fim-de-fluxo iterador. Quando um