#include <span.h>
Public Member Functions | |
| SpanOwner (const OwnedSpan &span) | |
| SpanOwner (const SpanOwner &other) | |
| SpanOwner & | operator= (const SpanOwner &other) |
| SpanOwner & | moveFrom (SpanOwner &other) |
| pointer | release () |
| void | clear () |
| const OwnedSpan & | operator* () const |
| OwnedSpan & | operator* () |
| const OwnedSpan * | operator-> () const |
| OwnedSpan * | operator-> () |
| const_reference | operator[] (const index_type index) const |
| reference | operator[] (const index_type index) |
Public Member Functions inherited from Common::SafeBool< SpanOwner< OwnedSpan > > | |
| operator bool_type () const | |
| operator bool_type () | |
Protected Member Functions | |
| bool | operator_bool () const |
Similar to ScopedPtr, but allows holding and disposing pointers inside Spans without requiring an additional pointer to data, and with copyability.
|
inline |
Creates a new owned copy of the memory from the other SpanOwner.
|
inline |
Transfers ownership of the Span from the other owner to this owner.
|
inline |
Releases the memory owned by this SpanOwner to the caller.
|
inline |
Destroys the memory owned by this owner.