Aleksandrs Gumenuks / MaximInterface_Extended

Dependents:   mbed_DS28EC20_GPIO

Embed: (wiki syntax)

« Back to documentation index

span< T, Extent > Class Template Reference

span< T, Extent > Class Template Reference

Generic memory span class similar to gsl::span or the proposed std::span. More...

#include <span.hpp>

Inherits MaximInterface::detail::span_base< MaximInterface::span, T, Extent >.

Public Member Functions

Subviews
template<index_type Count>
span< element_type, Count > last () const
Iterators
iterator begin () const
const_iterator cbegin () const
iterator end () const
const_iterator cend () const
reverse_iterator rbegin () const
const_reverse_iterator crbegin () const
reverse_iterator rend () const
const_reverse_iterator crend () const
Element access
reference operator[] (index_type idx) const
reference operator() (index_type idx) const
pointer data () const
Subviews
template<index_type Count>
span< element_type, Count > first () const
span< element_type > first (index_type Count) const
span< element_type > last (index_type Count) const
template<index_type Offset, index_type Count>
span< element_type, Count > subspan () const
span< element_type > subspan (index_type Offset, index_type Count=dynamic_extent) const

Static Public Member Functions

Observers
static index_type size ()
static index_type size_bytes ()
static bool empty ()

Detailed Description

template<typename T, ptrdiff_t Extent = dynamic_extent>
class MaximInterface::span< T, Extent >

Generic memory span class similar to gsl::span or the proposed std::span.

Definition at line 156 of file span.hpp.