Home | Libraries | People | FAQ | More |
A dynamic buffer encapsulates memory storage that may be automatically resized as required.
A dynamic buffer type X
shall
satisfy the requirements of CopyConstructible
(C++ Std, [copyconstructible]) types in addition to those listed below.
In the table below, X
denotes
a dynamic buffer class, x
denotes a value of type X&
, x1
denotes values of type const X&
,
pos
and n
denote values of type size_t
,
and u
denotes an identifier.
Table 13. DynamicBuffer_v2 requirements
expression |
type |
assertion/note |
---|---|---|
|
type meeting ConstBufferSequence requirements. |
This type represents the underlying memory as a sequence of @c const_buffer objects. |
|
type meeting MutableBufferSequence requirements. |
This type represents the underlying memory as a sequence of @c mutable_buffer objects. |
|
|
Returns the size, in bytes, of the underlying memory. |
|
|
Returns the permitted maximum size of the underlying memory. |
|
|
Returns the maximum size to which the underlying memory can grow without requiring reallocation. |
|
|
Returns a constant buffer sequence |
|
|
Returns a mutable buffer sequence |
|
Requires: |
|
|
Removes |
|
|
Removes |