diff --git a/CHANGELOG.md b/CHANGELOG.md index fe6a2688..45ac731b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Version 84: * static_buffer::consume improvement * multi_buffer is type-check friendly * bind_handler allows placeholders +* Add consuming_buffers::get -------------------------------------------------------------------------------- diff --git a/include/beast/core/consuming_buffers.hpp b/include/beast/core/consuming_buffers.hpp index a63c0a46..7472c894 100644 --- a/include/beast/core/consuming_buffers.hpp +++ b/include/beast/core/consuming_buffers.hpp @@ -112,9 +112,16 @@ public: /// Assignment consuming_buffers& operator=(consuming_buffers&&); - /// Assignmen + /// Assignment consuming_buffers& operator=(consuming_buffers const&); + /// Returns the underlying buffers, without modification + BufferSequence const& + get() const + { + return bs_; + } + /// Get a bidirectional iterator to the first element. const_iterator begin() const;