Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2020. The current version is 1.90.0.
Returns a mutable buffer sequence representing writable bytes.
mutable_buffers_type prepare( std::size_t n);
Returns a mutable buffer sequence representing the writable bytes containing
exactly n bytes of storage.
This function does not allocate memory. Instead, the storage comes from
the underlying mutable buffer sequence. All buffer sequences previously
obtained using prepare are invalidated. Buffer
sequences previously obtained using data remain valid.
|
Name |
Description |
|---|---|
|
|
The desired number of bytes in the returned buffer sequence. |
|
Type |
Thrown On |
|---|---|
|
|
if |
Strong guarantee.