|
| buffer_type ()=default |
| Default constructor.
|
|
constexpr | buffer_type (pointer data, size_type len) noexcept |
| Constructor.
|
|
template<class T , typename std::enable_if<(!std::is_same< typename std::decay< T >::type, buffer_type >::value &&std::is_constructible< span< byte >, T >::value), bool >::type = true> |
constexpr | buffer_type (T &&s, _implict_span_constructor_tag={}) noexcept |
| Constructor taking any type acceptable to span .
|
|
| buffer_type (const buffer_type &)=default |
|
| buffer_type (buffer_type &&)=default |
|
buffer_type & | operator= (const buffer_type &)=default |
|
buffer_type & | operator= (buffer_type &&)=default |
|
constexpr QUICKCPPLIB_NODISCARD bool | empty () const noexcept |
| Returns if this buffer is empty.
|
|
constexpr pointer | data () noexcept |
| Returns the address of the bytes for this buffer.
|
|
constexpr const_pointer | data () const noexcept |
| Returns the address of the bytes for this buffer.
|
|
constexpr size_type | size () const noexcept |
| Returns the number of bytes in this buffer.
|
|
constexpr iterator | begin () noexcept |
| Returns an iterator to the beginning of the buffer.
|
|
constexpr const_iterator | begin () const noexcept |
| Returns an iterator to the beginning of the buffer.
|
|
constexpr const_iterator | cbegin () const noexcept |
| Returns an iterator to the beginning of the buffer.
|
|
constexpr iterator | end () noexcept |
| Returns an iterator to after the end of the buffer.
|
|
constexpr const_iterator | end () const noexcept |
| Returns an iterator to after the end of the buffer.
|
|
constexpr const_iterator | cend () const noexcept |
| Returns an iterator to after the end of the buffer.
|
|
The scatter buffer type used by this handle. Guaranteed to be TrivialType
and StandardLayoutType
. Try to make address and length 64 byte, or ideally, page_size()
aligned where possible.