Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed_DS28EC20_GPIO
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.
Generated on Tue Jul 12 2022 23:29:46 by
1.7.2