...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
A range of bytes expressed as a ContiguousContainer.
Defined in header <boost/beast/core/span.hpp>
template< class T> class span
Name |
Description |
---|---|
The const iterator used by the container. |
|
The const pointer used by the container. |
|
The const reference used by the container. |
|
The type of value, including cv qualifiers. |
|
The type of integer used to index the span. |
|
The iterator used by the container. |
|
A pointer to a span element. |
|
A reference to a span element. |
|
The type of value of each span element. |
Name |
Description |
---|---|
Returns an iterator to the beginning of the span. |
|
Returns an iterator to the beginning of the span. |
|
Returns an iterator to one past the end of the span. |
|
Returns a pointer to the beginning of the span. |
|
Returns true if the span is empty. |
|
Returns an iterator to one past the end of the span. |
|
Assignment. |
|
Returns the number of elements in the span. |
|
Constructor. |
This class implements a non-owning reference to a storage area of a certain size and having an underlying integral type with size of 1.
Type |
Description |
---|---|
|
The type pointed to by span iterators |
Convenience header <boost/beast/core.hpp>