template<typename Deque>
class pw::multibuf::ConstChunks< Deque >
Helper class that allows iterating over mutable chunks in a MultiBuf.
This allows using range-based for-loops, e.g.
for (
ByteSpan chunk : multibuf.ConstChunks()) {
ModifyChunk(chunk);
}
- Warning
- Modifying the structure of a MultiBuf invalidates any outstanding chunk iterators.
|
using | size_type = typename Deque::size_type |
|
using | value_type = typename Deque::value_type |
|
using | difference_type = typename Deque::difference_type |
|
using | iterator = ChunkIterator< size_type, false > |
|
using | const_iterator = ChunkIterator< size_type, true > |
|
constexpr void | Init (const Deque &deque, size_type depth) |
|
constexpr ConstChunks< Deque > & | derived () |
|
constexpr const ConstChunks< Deque > & | derived () const |
|
constexpr const const Deque & | deque () const |
|
constexpr size_type | depth () const |
|