std::experimental::pmr::monotonic_buffer_resource:: monotonic_buffer_resource
From cppreference.net
<
cpp
|
experimental
|
monotonic buffer resource
|
monotonic_buffer_resource
(
)
;
|
(1) | (biblioteca fundamentals TS) |
|
explicit
monotonic_buffer_resource
(
memory_resource
*
upstream
)
;
|
(2) | (biblioteca fundamentals TS) |
|
explicit
monotonic_buffer_resource
(
std::
size_t
initial_size
)
;
|
(3) | (biblioteca fundamentals TS) |
|
monotonic_buffer_resource
(
std::
size_t
initial_size,
memory_resource * upstream ) ; |
(4) | (biblioteca fundamentals TS) |
|
monotonic_buffer_resource
(
void
*
buffer,
std::
size_t
buffer_size
)
;
|
(5) | (biblioteca fundamentals TS) |
|
monotonic_buffer_resource
(
void
*
buffer,
std::
size_t
buffer_size,
memory_resource * upstream ) ; |
(6) | (biblioteca fundamentals TS) |
|
monotonic_buffer_resource
(
const
monotonic_buffer_resource
&
)
=
delete
;
|
(7) | (biblioteca fundamentals TS) |
Construye un
monotonic_buffer_resource
. Los constructores que no toman un puntero a un recurso de memoria ascendente utilizan el valor de retorno de
std::
experimental
::
pmr
::
get_default_resource
(
)
como recurso de memoria ascendente.
1,2)
Establece el
current buffer
a nulo y el
next buffer size
a un tamaño definido por la implementación.
3,4)
Establece el
búfer actual
a nulo y el
tamaño del siguiente búfer
a un tamaño no menor que
initial_size
.
5,6)
Establece el
búfer actual
a
buffer
y el
tamaño del siguiente búfer
a
buffer_size
(pero no menos de 1). Luego incrementa el
tamaño del siguiente búfer
por un factor de crecimiento definido por la implementación (que no tiene que ser integral).
7)
El constructor de copia está eliminado.
Parámetros
| upstream | - | el recurso de memoria ascendente a utilizar; debe apuntar a un recurso de memoria válido |
| initial_size | - | el tamaño mínimo del primer búfer a asignar; debe ser mayor que cero |
| buffer | - | el búfer inicial a utilizar |
| buffer_size | - | el tamaño del búfer inicial; no puede ser mayor que el número de bytes en buffer |