Espacios de nombres
Variantes
Acciones

std::ostreambuf_iterator::ostreambuf_iterator

De cppreference.com

 
 
Biblioteca Iterator
Primitivas iterador
Original:
Iterator primitives
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iterator_traits
input_iterator_tag
output_iterator_tag
forward_iterator_tag
bidirectional_iterator_tag
random_access_iterator_tag
iterator
Adaptadores iterador
Original:
Iterator adaptors
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
reverse_iterator
Iteradores Stream
Original:
Stream iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istream_iterator
ostream_iterator
istreambuf_iterator
ostreambuf_iterator
Operaciones iterador
Original:
Iterator operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
advance
distance
prev(C++11)
next(C++11)
Rango de acceso
Original:
Range access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
begin(C++11)
end(C++11)
 
std::ostreambuf_iterator
Las funciones miembro
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ostreambuf_iterator::ostreambuf_iterator
ostreambuf_iterator::operator=
ostreambuf_iterator::operator*
ostreambuf_iterator::operator++
ostreambuf_iterator::operator++(int)
ostreambuf_iterator::failed
 
ostreambuf_iterator(streambuf_type* buffer)
(1)
ostreambuf_iterator(ostream_type& stream)
(2)
1)
Construye el repetidor con el conjunto streambuf_type* miembro privado a buffer y la fallida () bit a false. El comportamiento no está definido si buffer es un puntero nulo .
Original:
Constructs the iterator with the private streambuf_type* member set to buffer and the failed() bit set to false. The behavior is undefined if buffer is a null pointer.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Igual que ostreambuf_iterator(stream.rdbuf())
Original:
Same as ostreambuf_iterator(stream.rdbuf())
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Parámetros

stream -
el flujo de salida cuyo rdbuf () se puede acceder por este iterador
Original:
the output stream whose rdbuf() will be accessed by this iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
buffer -
el tampón de flujo de salida para acceder a este iterador
Original:
the output stream buffer to be accessed by this iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Excepciones

noexcept specification:  
noexcept
  (desde C++11)

[editar] Ejemplo

#include <iostream>
#include <fstream>
#include <iterator>
int main()
{
    std::basic_filebuf<char> f;
    f.open("test.txt", std::ios::out);
 
    std::ostreambuf_iterator<char> out1(&f);
 
    std::ostreambuf_iterator<wchar_t> out2(std::wcout);
 
    *out1 = 'a';
    *out2 = L'a';
}