MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / increment

Function increment

3rd/asio-1.24.0/include/asio/buffers_iterator.hpp:354–374  ·  view source on GitHub ↗

Increment the iterator.

Source from the content-addressed store, hash-verified

352
353 // Increment the iterator.
354 void increment()
355 {
356 ASIO_ASSERT(current_ != end_ && "iterator out of bounds");
357 ++position_;
358
359 // Check if the increment can be satisfied by the current buffer.
360 ++current_buffer_position_;
361 if (current_buffer_position_ != current_buffer_.size())
362 return;
363
364 // Find the next non-empty buffer.
365 ++current_;
366 current_buffer_position_ = 0;
367 while (current_ != end_)
368 {
369 current_buffer_ = *current_;
370 if (current_buffer_.size() > 0)
371 return;
372 ++current_;
373 }
374 }
375
376 // Decrement the iterator.
377 void decrement()

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected