tvm
|
A partial implementation of the C++20 std::span. More...
#include <span.h>
Classes | |
class | iterator_base |
Public Types | |
using | value_type = W |
using | const_W = typename std::add_const< W >::type |
using | iterator = iterator_base< W > |
using | const_iterator = iterator_base< const_W > |
Public Member Functions | |
Span (T *begin, int num_elements) | |
Span (T *begin, T *end) | |
iterator | begin () const |
iterator | end () const |
size_t | size () const |
W | operator[] (int i) |
Protected Attributes | |
T * | begin_ |
T * | end_ |
A partial implementation of the C++20 std::span.
At the time of writing, TVM must compile against C++17.
using tvm::support::Span< T, W >::const_iterator = iterator_base<const_W> |
using tvm::support::Span< T, W >::const_W = typename std::add_const<W>::type |
using tvm::support::Span< T, W >::iterator = iterator_base<W> |
using tvm::support::Span< T, W >::value_type = W |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |