|
| ETL_CONSTEXPR | span () ETL_NOEXCEPT |
|
template<typename TIterator> |
| ETL_CONSTEXPR14 | span (const TIterator begin_, const size_t size_) ETL_NOEXCEPT_IF(ETL_NOT_USING_EXCEPTIONS) |
| | Construct from iterator + size.
|
|
template<typename TIteratorBegin, typename TIteratorEnd> |
| ETL_CONSTEXPR14 | span (const TIteratorBegin begin_, const TIteratorEnd end_, typename etl::enable_if< !etl::is_integral< TIteratorEnd >::value, void >::type *=0) ETL_NOEXCEPT_IF(ETL_NOT_USING_EXCEPTIONS) |
| | Construct from iterators.
|
|
template<size_t Array_Size> |
| ETL_CONSTEXPR | span (typename etl::type_identity< element_type >::type(&begin_)[Array_Size], typename etl::enable_if<(Array_Size==Extent), void >::type *=0) ETL_NOEXCEPT |
| | Construct from C array.
|
| template<typename TContainer> |
| | span (TContainer &a, typename etl::enable_if< !etl::is_span< TContainer >::value &&!etl::is_std_array< typename etl::remove_reference< TContainer >::type >::value &&!etl::is_etl_array< typename etl::remove_reference< TContainer >::type >::value &&!etl::is_pointer< typename etl::remove_reference< TContainer >::type >::value &&!etl::is_array< TContainer >::value &&has_size< TContainer >::value &&has_data< TContainer >::value &&etl::is_same< typename etl::remove_cv< T >::type, typename etl::remove_cv< typename etl::remove_reference< TContainer >::type::value_type >::type >::value, void >::type *=0) |
| template<typename TContainer> |
| | span (const TContainer &a, typename etl::enable_if< !etl::is_span< TContainer >::value &&!etl::is_std_array< typename etl::remove_reference< TContainer >::type >::value &&!etl::is_etl_array< typename etl::remove_reference< TContainer >::type >::value &&!etl::is_pointer< typename etl::remove_reference< TContainer >::type >::value &&has_size< TContainer >::value &&has_data< TContainer >::value &&etl::is_same< typename etl::remove_cv< T >::type, typename etl::remove_cv< typename etl::remove_reference< TContainer >::type::value_type >::type >::value, void >::type *=0) |
|
template<typename U, size_t Size> |
| ETL_CONSTEXPR | span (etl::array< U, Size > &other, typename etl::enable_if<(Size==Extent) &&etl::is_convertible< U(*)[], T(*)[]>::value, void >::type *=0) ETL_NOEXCEPT |
| | Constructor from etl array.
|
|
template<typename U, size_t Size> |
| ETL_CONSTEXPR | span (const etl::array< U, Size > &other, typename etl::enable_if<(Size==Extent) &&etl::is_convertible< U(*)[], T(*)[]>::value, void >::type *=0) ETL_NOEXCEPT |
| | Constructor from const etl array.
|
|
ETL_CONSTEXPR | span (const span &other) ETL_NOEXCEPT |
| | Copy constructor.
|
| template<typename U, size_t Size> |
| ETL_CONSTEXPR | span (const etl::span< U, Size > &other, typename etl::enable_if<(Size==Extent) &&(Size !=etl::dynamic_extent), void >::type *=0) ETL_NOEXCEPT |
| template<typename U, size_t Size> |
| ETL_CONSTEXPR14 | span (const etl::span< U, Size > &other, typename etl::enable_if<(Size==etl::dynamic_extent), void >::type *=0) |
|
ETL_NODISCARD ETL_CONSTEXPR reference | front () const ETL_NOEXCEPT |
| | Returns a reference to the first element.
|
|
ETL_NODISCARD ETL_CONSTEXPR reference | back () const ETL_NOEXCEPT |
| | Returns a reference to the last element.
|
|
ETL_NODISCARD ETL_CONSTEXPR pointer | data () const ETL_NOEXCEPT |
| | Returns a pointer to the first element of the internal storage.
|
|
ETL_NODISCARD ETL_CONSTEXPR const_iterator | cbegin () const ETL_NOEXCEPT |
| | Returns a const iterator to the beginning of the span.
|
|
ETL_NODISCARD ETL_CONSTEXPR iterator | begin () const ETL_NOEXCEPT |
| | Returns an iterator to the beginning of the span.
|
|
ETL_NODISCARD ETL_CONSTEXPR circular_iterator | begin_circular () const ETL_NOEXCEPT |
| | Returns a circular iterator to the beginning of the span.
|
|
ETL_NODISCARD ETL_CONSTEXPR const_iterator | cend () const ETL_NOEXCEPT |
| | Returns a const iterator to the end of the span.
|
|
ETL_NODISCARD ETL_CONSTEXPR iterator | end () const ETL_NOEXCEPT |
| | Returns an iterator to the end of the span.
|
|
ETL_NODISCARD ETL_CONSTEXPR const_reverse_iterator | crbegin () const ETL_NOEXCEPT |
|
ETL_NODISCARD ETL_CONSTEXPR reverse_iterator | rbegin () const ETL_NOEXCEPT |
|
ETL_NODISCARD ETL_CONSTEXPR reverse_circular_iterator | rbegin_circular () const ETL_NOEXCEPT |
| | Returns a reverse circular iterator to the end of the span.
|
|
ETL_NODISCARD ETL_CONSTEXPR const_reverse_iterator | crend () const ETL_NOEXCEPT |
| | Returns a const reverse iterator to the end of the span.
|
|
ETL_NODISCARD ETL_CONSTEXPR reverse_iterator | rend () const ETL_NOEXCEPT |
| | Returns a reverse iterator to the end of the span.
|
|
ETL_NODISCARD ETL_CONSTEXPR bool | empty () const ETL_NOEXCEPT |
| | Returns true if the span size is zero.
|
|
ETL_NODISCARD ETL_CONSTEXPR size_t | size () const ETL_NOEXCEPT |
| | Returns the size of the span.
|
|
ETL_NODISCARD ETL_CONSTEXPR size_t | size_bytes () const ETL_NOEXCEPT |
| | Returns the size of the span in bytes.
|
|
ETL_NODISCARD ETL_CONSTEXPR size_t | max_size () const ETL_NOEXCEPT |
| | Returns the maximum possible size of the span.
|
|
ETL_CONSTEXPR14 span & | operator= (const span &other) ETL_NOEXCEPT |
| | Assign from a span.
|
|
ETL_NODISCARD ETL_CONSTEXPR14 reference | at (size_t i) |
| | Returns a reference to the value at index 'i'.
|
|
ETL_NODISCARD ETL_CONSTEXPR14 const_reference | at (size_t i) const |
| | Returns a const reference to the value at index 'i'.
|
|
ETL_CONSTEXPR reference | operator[] (const size_t i) const |
| | Returns a reference to the indexed value.
|
| template<size_t COUNT> |
| ETL_NODISCARD ETL_CONSTEXPR etl::span< element_type, COUNT > | first () const ETL_NOEXCEPT |
| ETL_NODISCARD ETL_CONSTEXPR etl::span< element_type, etl::dynamic_extent > | first (size_t count) const ETL_NOEXCEPT_IF(ETL_NOT_USING_EXCEPTIONS||ETL_NOT_CHECKING_EXTRA) |
|
template<size_t COUNT> |
| ETL_NODISCARD ETL_CONSTEXPR etl::span< element_type, COUNT > | last () const ETL_NOEXCEPT |
| | Obtains a span that is a view over the last COUNT elements of this span.
|
|
ETL_NODISCARD ETL_CONSTEXPR etl::span< element_type, etl::dynamic_extent > | last (size_t count) const ETL_NOEXCEPT_IF(ETL_NOT_USING_EXCEPTIONS||ETL_NOT_CHECKING_EXTRA) |
| | Obtains a span that is a view over the last count elements of this span.
|
| template<size_t OFFSET, size_t COUNT> |
| etl::span< element_type, COUNT !=etl::dynamic_extent ? COUNT :Extent - OFFSET > | subspan () const |
| ETL_NODISCARD ETL_CONSTEXPR etl::span< element_type, etl::dynamic_extent > | subspan (size_t offset, size_t count=etl::dynamic_extent) const ETL_NOEXCEPT_IF(ETL_NOT_USING_EXCEPTIONS||ETL_NOT_CHECKING_EXTRA) |
|
template<typename TNew> |
| ETL_NODISCARD ETL_CONSTEXPR14 etl::span< TNew, Extent *sizeof(element_type)/sizeof(TNew)> | reinterpret_as () const |
| | Reinterpret the span as a span with different element type.
|
template<typename T, size_t Extent = etl::dynamic_extent>
class etl::span< T, Extent >
Span - Fixed Extent.