10 #ifndef BOOST_BEAST_CONSUMING_BUFFERS_HPP 11 #define BOOST_BEAST_CONSUMING_BUFFERS_HPP 15 #include <boost/asio/buffer.hpp> 16 #include <boost/optional.hpp> 19 #include <type_traits> 39 template<
class BufferSequence>
43 typename std::decay<BufferSequence>::type;
46 typename buffers_type::const_iterator;
50 std::size_t skip_ = 0;
52 template<
class Deduced>
54 : bs_(std::forward<Deduced>(other).bs_)
55 , begin_(std::next(bs_.begin(), dist))
68 #if BOOST_BEAST_DOXYGEN 72 std::is_convertible<
typename 73 std::iterator_traits<iter_type>::value_type,
74 boost::asio::mutable_buffer>::value,
75 boost::asio::mutable_buffer,
76 boost::asio::const_buffer>::type;
79 #if BOOST_BEAST_DOXYGEN 80 using const_iterator = implementation_defined;
112 template<
class... Args>
122 BufferSequence
const&
const_iterator end() const
Get a bidirectional iterator to one past the last element.
Definition: consuming_buffers.ipp:210
Definition: async_result.hpp:20
detail::buffers_helper< ConstBufferSequence > buffers(ConstBufferSequence const &b)
Definition: ostream.hpp:50
Definition: consuming_buffers.hpp:40
typename std::conditional< std::is_convertible< typename std::iterator_traits< iter_type >::value_type, boost::asio::mutable_buffer >::value, boost::asio::mutable_buffer, boost::asio::const_buffer >::type value_type
Definition: consuming_buffers.hpp:76
const_iterator begin() const
Get a bidirectional iterator to the first element.
Definition: consuming_buffers.ipp:200
void consume(std::size_t amount)
Definition: consuming_buffers.ipp:219
consuming_buffers()
Constructor.
Definition: consuming_buffers.ipp:119
consuming_buffers & operator=(consuming_buffers &&)
Assignment.
Definition: consuming_buffers.ipp:171