24#ifndef CPPCORE_COMMON_TSPAN_H
25#define CPPCORE_COMMON_TSPAN_H
56 const T*
data()
const;
85 const T *mData{
nullptr};
116 return mData + mSize;
121 if (index >= mSize) {
122 return std::numeric_limits<T>::max();
Iterator end()
Will return the end iterator.
~TSpan()=default
The class destructor.
size_t size() const
Will return the number of items in the view.
const T * Iterator
The iterator type.
bool empty() const
Will return true, if the span view is empty.
T operator[](size_t index)
Will return the item at the given index.
const T * data() const
Will return the data pointer showing to the first entry.
Iterator begin()
Will return the begin iterator.
TSpan()=default
The default class constructor.