...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructor.
template< class ChunkExtensions, class Allocator> chunk_body( ConstBufferSequence const& buffers, ChunkExtensions&& extensions, Allocator const& allocator);
This constructs buffers representing a complete chunk with the passed chunk extensions and having the size and contents of the specified buffer sequence. The specified allocator is used to provide storage for the extensions object.
Name |
Description |
---|---|
|
A buffer sequence representing the chunk body. Although the buffers object may be copied as necessary, ownership of the underlying memory blocks is retained by the caller, which must guarantee that they remain valid while this object is in use. |
|
The chunk extensions object. The expression |
|
The allocator to provide storage for the moved or copied extensions object. |
This function participates in overload resolution only if ChunkExtensions meets the requirements stated above.