|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Forward iterator over a buffer's data segments. More...
#include <idfxx_net/include/idfxx/net/netconn/buffer.hpp>
Public Types | |
| using | value_type = std::span< const std::byte > |
| using | difference_type = std::ptrdiff_t |
| using | iterator_concept = std::forward_iterator_tag |
| using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
| iterator () noexcept=default | |
| Constructs a past-the-end iterator. | |
| value_type | operator* () const noexcept |
| Returns the current segment as a span. | |
| iterator & | operator++ () noexcept |
| Advances to the next segment. | |
| iterator | operator++ (int) noexcept |
| Advances to the next segment, returning the prior position. | |
| bool | operator== (const iterator &other) const noexcept |
| Compares two iterators; equal iff they reference the same segment. | |
Friends | |
| class | segment_view |
Forward iterator over a buffer's data segments.
Definition at line 118 of file buffer.hpp.
Definition at line 121 of file buffer.hpp.
| using idfxx::net::netconn::buffer::segment_view::iterator::iterator_category = std::input_iterator_tag |
Definition at line 125 of file buffer.hpp.
| using idfxx::net::netconn::buffer::segment_view::iterator::iterator_concept = std::forward_iterator_tag |
Definition at line 122 of file buffer.hpp.
| using idfxx::net::netconn::buffer::segment_view::iterator::value_type = std::span<const std::byte> |
Definition at line 120 of file buffer.hpp.
|
defaultnoexcept |
Constructs a past-the-end iterator.
|
noexcept |
Returns the current segment as a span.
|
noexcept |
Advances to the next segment.
Advances to the next segment, returning the prior position.
Definition at line 137 of file buffer.hpp.
|
inlinenoexcept |
Compares two iterators; equal iff they reference the same segment.
Definition at line 144 of file buffer.hpp.
|
friend |
Definition at line 147 of file buffer.hpp.