Template for classes representing a memory span split in two parts.
More...
#include <eagine/memory/split_span.hpp>
|
constexpr | basic_split_span () noexcept=default |
| Default constructor.
|
|
constexpr | basic_split_span (basic_span< ValueType, Pointer, SizeType > spn) noexcept |
| Initializing constructor.
|
|
constexpr auto | split_position () const noexcept -> span_size_t |
| Returns the position of split as count of bytes since beginning. More...
|
|
constexpr auto | head () const noexcept |
| Returns the part of the block before the split (split not included). More...
|
|
constexpr auto | tail () const noexcept |
| Returns the part of the block starting at the split until the end. More...
|
|
auto | advance (span_size_t amount) noexcept -> auto & |
| Moves the split by the specified amout (number of bytes). More...
|
|
auto | skip_to_end () noexcept -> auto & |
| Moves the split to the end of the block. More...
|
|
template<typename ValueType, typename Pointer = ValueType*, typename SizeType = span_size_t>
class eagine::memory::basic_split_span< ValueType, Pointer, SizeType >
Template for classes representing a memory span split in two parts.
- Template Parameters
-
ValueType | the type of elements assumed in the covered memory range. |
Pointer | the pointer type used to point to the start of the span. |
SizeType | the integer type used to count the elements in the span. |
- See also
- basic_split_block
◆ advance()
template<typename ValueType , typename Pointer = ValueType*, typename SizeType = span_size_t>
◆ head()
template<typename ValueType , typename Pointer = ValueType*, typename SizeType = span_size_t>
Returns the part of the block before the split (split not included).
- See also
- tail
-
split_position
◆ skip_to_end()
template<typename ValueType , typename Pointer = ValueType*, typename SizeType = span_size_t>
◆ split_position()
template<typename ValueType , typename Pointer = ValueType*, typename SizeType = span_size_t>
Returns the position of split as count of bytes since beginning.
- See also
- head
-
tail
-
advance
◆ tail()
template<typename ValueType , typename Pointer = ValueType*, typename SizeType = span_size_t>
Returns the part of the block starting at the split until the end.
- See also
- head
-
split_position
The documentation for this class was generated from the following file: