std::istreambuf_iterator<CharT,Traits>:: istreambuf_iterator
From cppreference.net
<
cpp
|
iterator
|
istreambuf iterator
C++
Iterator library
| Iterator concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator primitives | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Algorithm concepts and utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Indirect callable concepts | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Common algorithm requirements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Utilities | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Iterator adaptors | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::istreambuf_iterator
| Member functions | ||||
|
istreambuf_iterator::istreambuf_iterator
|
||||
| Non-member functions | ||||
|
(until C++20)
|
| (1) | ||
|
istreambuf_iterator
(
)
throw
(
)
;
|
(hasta C++11) | |
|
constexpr
istreambuf_iterator
(
)
noexcept
;
|
(desde C++11) | |
|
constexpr
istreambuf_iterator
(
std::
default_sentinel_t
)
noexcept
;
|
(2) | (desde C++20) |
| (3) | ||
|
istreambuf_iterator
(
std::
basic_istream
<
CharT,Traits
>
&
is
)
throw
(
)
;
|
(hasta C++11) | |
|
istreambuf_iterator
(
std::
basic_istream
<
CharT,Traits
>
&
is
)
noexcept
;
|
(desde C++11) | |
| (4) | ||
|
istreambuf_iterator
(
std::
basic_streambuf
<
CharT,Traits
>
*
s
)
throw
(
)
;
|
(hasta C++11) | |
|
istreambuf_iterator
(
std::
basic_streambuf
<
CharT,Traits
>
*
s
)
noexcept
;
|
(desde C++11) | |
| (5) | ||
|
istreambuf_iterator
(
const
/* proxy */
&
p
)
throw
(
)
;
|
(hasta C++11) | |
|
istreambuf_iterator
(
const
/* proxy */
&
p
)
noexcept
;
|
(desde C++11) | |
|
istreambuf_iterator
(
const
istreambuf_iterator
&
)
noexcept
=
default
;
|
(6) | (desde C++11) |
1,2)
Construye un iterador de fin de flujo.
3)
Inicializa el iterador y almacena el valor de
is.
rdbuf
(
)
en un miembro de datos. Si
is.
rdbuf
(
)
es nulo, entonces se construye un iterador de fin de flujo.
4)
Inicializa el iterador y almacena el valor de
s
en un miembro de datos. Si
s
es nulo, entonces se construye un iterador de fin de flujo.
5)
Llame efectivamente a
(3)
con el puntero
streambuf_type*
que
p
contiene.
6)
El constructor de copia es trivial y está explícitamente predeterminado.
|
El constructor de copia está efectivamente declarado de forma implícita y no se garantiza que sea trivial. |
(until C++11) |
Parámetros
| is | - | flujo para obtener el buffer de flujo |
| s | - | buffer de flujo para inicializar el iterador |
| p | - | objeto del tipo proxy definido por la implementación |