6#include <bond/core/config.h>
8#include <bond/core/traits.h>
9#include <bond/stream/stream_interface.h>
18template <
typename T,
typename Reader,
typename Writer>
19void PassThrough(bonded<T, Reader&>& value, Reader& reader, Writer& writer)
21 BOOST_STATIC_ASSERT((is_protocol_same<Reader, Writer>::value));
23 auto before = GetCurrentBuffer(reader.GetBuffer());
27 auto after = GetCurrentBuffer(reader.GetBuffer());
29 writer.GetBuffer().Write(GetBufferRange(before, after));
namespace bond
Definition: apply.h:17