Fix basic_streambuf:

prepare() is rewritten to operate more simply; the state of
the container is always consistent even between internal operations.
This commit is contained in:
Vinnie Falco
2016-04-21 08:46:43 -04:00
parent df82a734af
commit 5602a24b22
4 changed files with 378 additions and 359 deletions

View File

@@ -41,6 +41,9 @@ public:
template rebind_alloc<std::uint8_t>;
private:
// Storage for the list of buffers representing the input
// and output sequences. The allocation for each element
// contains `element` followed by raw storage bytes.
class element;
using alloc_traits = std::allocator_traits<allocator_type>;