...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> chunk_body( ConstBufferSequence const& buffers, ChunkExtensions&& extensions);
This constructs buffers representing a complete chunk with the passed chunk extensions and having the size and contents of the specified buffer sequence. The default 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 |
This function participates in overload resolution only if ChunkExtensions meets the requirements stated above.