|
| | ArraySlice (T *pData, USize count) noexcept |
| | Create an array slice. More...
|
| |
| | ArraySlice (T *pBegin, T *pEnd) noexcept |
| | Create an array slice. More...
|
| |
| template<USize N> |
| | ArraySlice (T(&arr)[N]) noexcept |
| | Create an array slice. More...
|
| |
| | ArraySlice (StdVector &vector) noexcept |
| | Create an array slice. More...
|
| |
| template<USize N> |
| | ArraySlice (StdArray< N > &array) noexcept |
| | Create an array slice. More...
|
| |
| | ArraySlice (std::initializer_list< T > lst) noexcept |
| | Create an array slice. More...
|
| |
| ArraySlice | operator() (USize beginIndex, USize endIndex) const |
| | Create a subslice from this array slice. More...
|
| |
| T & | operator[] (USize index) const |
| | Get an element by index. More...
|
| |
| SSize | IndexOf (const T &value) const noexcept |
| | Get index of the first element equal to the passed value. More...
|
| |
| SSize | LastIndexOf (const T &value) const noexcept |
| | Get index of the last element equal to the passed value. More...
|
| |
| bool | Contains (const T &value) const noexcept |
| | Check if the element is present in the slice. More...
|
| |
|
USize | Length () const noexcept |
| | Length of the slice.
|
| |
|
bool | Empty () const noexcept |
| | Check if the slice is empty.
|
| |
|
bool | Any () const noexcept |
| | Check if the slice has any elements.
|
| |
|
void | Reset () noexcept |
| | Reset the slice to empty state.
|
| |
|
T * | Data () const noexcept |
| | Get pointer to the beginning of the slice.
|
| |
| USize | CopyDataTo (ArraySlice< std::remove_const_t< T > > destination) const |
| | Copy data from this slice to another. More...
|
| |
|
template<class T1 > |
| ArraySlice< T1 > | ReinterpretAs () const |
| |
|
const T * | begin () const noexcept |
| |
|
const T * | end () const noexcept |
| |
|
| operator ArraySlice< std::add_const_t< T > > () const noexcept |
| |
template<class T>
class UN::ArraySlice< T >
This class represents a non-owning slice of contiguously stored elements.