template<typename SizeType = uint16_t>
class pw::multibuf_impl::ConstChunks< SizeType >
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 | const_iterator = ChunkIterator< size_type, true > |
|
using | difference_type = typename Deque::difference_type |
|
using | size_type = typename Deque::size_type |
|
using | value_type = typename Deque::value_type |
|
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 > |
|