MxEngine
Public Member Functions | List of all members
MxEngine::array_view< T > Class Template Reference

#include <ArrayView.h>

Public Member Functions

 array_view (T *data, size_t size)
 
 array_view (const array_view &)=default
 
 array_view (array_view &&)=default
 
array_viewoperator= (const array_view &)=default
 
array_viewoperator= (array_view &&)=default
 
template<size_t N>
 array_view (T(&array)[N])
 
template<size_t N>
 array_view (std::array< T, N > &array)
 
 array_view (std::vector< T > &vec)
 
 array_view (MxVector< T > &vec)
 
template<typename RandomIt >
 array_view (RandomIt begin, RandomIt end)
 
size_t size () const
 
bool empty () const
 
T * data ()
 
const T * data () const
 
T & operator[] (size_t idx)
 
const T & operator[] (size_t idx) const
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
T * begin ()
 
T * end ()
 
const T * begin () const
 
const T * end () const
 

Detailed Description

template<typename T>
class MxEngine::array_view< T >

class with behave line STL container, but just holds pointer and size of data. Can be used as same as string view for strings note that in C++20 std::span is introduced, so array_view will no longer will be needed detailed documentation is not provided for this class, as it is quite obvious


The documentation for this class was generated from the following file: