boost::capy::buffer_array
A buffer sequence holding up to N buffers.
Description
This class template stores a fixed‐capacity array of buffer descriptors, where the actual count can vary from 0 to N. It provides efficient storage for small buffer sequences without dynamic allocation.
Usage
void process(ConstBufferSequence auto const& buffers)
{
const_buffer_array<4> bufs(buffers);
// use bufs.begin(), bufs.end(), bufs.to_span()
}
Member Functions
Name |
Description |
|
Constructors |
|
Destructor. |
Copy assignment. |
|
Return an iterator to the beginning. |
|
Return an iterator to the end. |
|
Return a span of the buffers. |
|
Conversion to mutable span. |
|
Conversion to const span. |
Data Members
Name |
|
|
Friends
| Name | Description |
|---|---|
Slice customization point. |
|
Return the total byte count in O(1). |
Template Parameters
| Name | Description |
|---|---|
N |
Maximum number of buffers the array can hold. |
IsConst |
If true, holds const_buffer; otherwise mutable_buffer. |
Created with MrDocs