Home | Libraries | People | FAQ | More |
Any trivial type T or STL container.
Trivial types turn into a buffer of &v sized sizeof(T). Container types have their value type deduced and to_asio_buffers() called on that value_type. Additional specialisations are provided for string, vector and array to collapse the scatter gather buffers into a single one for contiguous storage.
template<class T> std::vector< asio::mutable_buffer > to_asio_buffers(T & v)
Type |
Concept |
Name |
Description |
---|---|---|---|
class T |
Any trivial type T or STL container |
- |
Must be specified |
T & |
v |
A vector of ASIO buffers
#include <boost/afio/v2/afio.hpp>