|
template<size_t N, typename U = Type, EnableNotVoid< U > = true> |
constexpr | Span (U(&itemsArray)[N]) |
|
constexpr | Span () |
| Builds an empty Span.
|
|
constexpr | Span (Type *items, SizeType sizeInElements) |
| Builds a Span from an array.
|
|
template<typename U = Type> |
constexpr | Span (TypeIfNotVoid< U > &type) |
| Builds a Span from a single object.
|
|
template<typename U = Type> |
constexpr | Span (std::initializer_list< TypeIfNotVoid< U > > list) |
| Span specialized constructor (mainly used for converting const char* to StringView)
|
|
template<typename U = Type> |
| operator Span< const TypeIfNotVoid< U > > () const |
|
template<typename U = Type> |
| operator Span< TypeIfNotVoid< U > > () |
|
| operator Span< const void > () const |
|
| operator Span< void > () |
|
template<typename T > |
Span< const T > | reinterpret_as_span_of () const |
| Reinterprets the current span as an array of the specified type.
|
|
template<typename T > |
Span< T > | reinterpret_as_span_of () |
| Reinterprets the current span as an array of the specified type.
|
|
template<typename T > |
T * | start_lifetime_as_array () const noexcept |
|
template<typename T > |
T * | start_lifetime_as_array () noexcept |
|
template<typename T > |
const T * | start_lifetime_as () const noexcept |
|
template<typename T > |
T * | start_lifetime_as () noexcept |
|
constexpr const Type * | begin () const |
|
constexpr const Type * | end () const |
|
constexpr const Type * | data () const |
|
constexpr Type * | begin () |
|
constexpr Type * | end () |
|
constexpr Type * | data () |
|
constexpr SizeType | sizeInElements () const |
|
constexpr SizeType | sizeInBytes () const |
|
constexpr bool | empty () const |
|
template<typename U = Type> |
TypeIfNotVoid< U > & | operator[] (SizeType idx) |
|
template<typename U = Type> |
const TypeIfNotVoid< U > & | operator[] (SizeType idx) const |
|
constexpr bool | sliceStart (SizeType offsetInElements, Span &destination) const |
| Creates another Span, starting at an offset in elements from current Span, until end.
|
|
constexpr bool | sliceStartLength (SizeType offsetInElements, SizeType lengthInElements, Span &destination) const |
| Creates another Span, starting at an offset in elements from current Span of specified length.
|
|
template<typename Type>
struct SC::Span< Type >
View over a contiguous sequence of items (pointer + size in elements).
- Template Parameters
-