Span class used when c++20 is not available.
More...
|
using | iterator = T * |
| Type used to iterate over this span (a raw pointer)
|
|
|
| Span (T *t, std::size_t n) |
| Constructor of Span class.
|
|
template<typename C , std::enable_if_t< !IsSpan< C >::value && std::is_pointer_v< decltype, T(*) , &&std::is_convertible_v< decltype(std::declval< C >().size()), std::size_t > , int > |
| Span (C &range) |
| Constructor of Span class for containers.
|
|
T & | operator[] (ptrdiff_t idx) const |
| Returns item by index.
|
|
T * | data () const |
| Returns pointer to data.
|
|
std::size_t | size () const |
| Returns number of data that referred by Span class.
|
|
iterator | begin () const |
| Returns begin iterator.
|
|
iterator | end () const |
| Returns end iterator.
|
|
std::size_t | size_bytes () const |
| Returns size in bytes.
|
|
template<typename T, std::size_t Extent>
class wasmtime::Span< T, Extent >
Span class used when c++20 is not available.
- Template Parameters
-
T | Type of data |
Extent | Static size of data referred by Span class |
The documentation for this class was generated from the following file: