|
|
ETL_CONSTEXPR | array_view () ETL_NOEXCEPT |
| | Default constructor.
|
|
template<typename U, size_t Size> |
| ETL_CONSTEXPR | array_view (etl::array< U, Size > &a, typename etl::enable_if< etl::is_same< typename etl::remove_cv< T >::type, typename etl::remove_cv< U >::type >::value, void >::type *=0) ETL_NOEXCEPT |
| | Construct from etl::array.
|
|
template<typename U, size_t Size> |
| ETL_CONSTEXPR | array_view (const etl::array< U, Size > &a, typename etl::enable_if< etl::is_same< typename etl::remove_cv< T >::type, typename etl::remove_cv< U >::type >::value, void >::type *=0) ETL_NOEXCEPT |
| | Construct from etl::array.
|
| template<typename TContainer> |
| ETL_CONSTEXPR | array_view (TContainer &a, typename etl::enable_if<!etl::is_pointer< typename etl::remove_reference< TContainer >::type >::value &&!etl::is_array< 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) ETL_NOEXCEPT |
| template<typename TContainer> |
| ETL_CONSTEXPR | array_view (const TContainer &a, typename etl::enable_if<!etl::is_pointer< typename etl::remove_reference< TContainer >::type >::value &&!etl::is_array< 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) ETL_NOEXCEPT |
|
template<typename TIterator> |
| ETL_CONSTEXPR | array_view (const TIterator begin_, const TIterator end_) ETL_NOEXCEPT |
| | Construct from iterators.
|
|
template<typename TIterator, typename TSize> |
| ETL_CONSTEXPR | array_view (const TIterator begin_, const TSize size_) ETL_NOEXCEPT |
| | Construct from iterator and size.
|
|
template<size_t Array_Size> |
| ETL_CONSTEXPR | array_view (T(&begin_)[Array_Size]) ETL_NOEXCEPT |
| | Construct from C array.
|
|
ETL_CONSTEXPR | array_view (const array_view &other) ETL_NOEXCEPT |
| | Copy constructor.
|
|
reference | front () |
| | Returns a reference to the first element.
|
|
const_reference | front () const |
| | Returns a const reference to the first element.
|
|
reference | back () |
| | Returns a reference to the last element.
|
|
const_reference | back () const |
| | Returns a const reference to the last element.
|
|
pointer | data () ETL_NOEXCEPT |
| | Returns a pointer to the first element of the internal storage.
|
|
const_pointer | data () const ETL_NOEXCEPT |
| | Returns a const pointer to the first element of the internal storage.
|
|
iterator | begin () ETL_NOEXCEPT |
| | Returns an iterator to the beginning of the array.
|
|
const_iterator | begin () const ETL_NOEXCEPT |
| | Returns a const iterator to the beginning of the array.
|
|
const_iterator | cbegin () const ETL_NOEXCEPT |
| | Returns a const iterator to the beginning of the array.
|
|
iterator | end () ETL_NOEXCEPT |
| | Returns an iterator to the end of the array.
|
|
const_iterator | end () const ETL_NOEXCEPT |
| | Returns a const iterator to the end of the array.
|
|
const_iterator | cend () const ETL_NOEXCEPT |
|
reverse_iterator | rbegin () ETL_NOEXCEPT |
|
const_reverse_iterator | rbegin () const ETL_NOEXCEPT |
| | Returns a const reverse iterator to the reverse beginning of the array.
|
|
const_reverse_iterator | crbegin () const ETL_NOEXCEPT |
| | Returns a const reverse iterator to the reverse beginning of the array.
|
|
reverse_iterator | rend () ETL_NOEXCEPT |
| | Returns a reverse iterator to the end of the array.
|
|
const_reverse_iterator | rend () const ETL_NOEXCEPT |
| | Returns a const reverse iterator to the end of the array.
|
|
const_reverse_iterator | crend () const ETL_NOEXCEPT |
| | Returns a const reverse iterator to the end of the array.
|
|
ETL_CONSTEXPR bool | empty () const ETL_NOEXCEPT |
| | Returns true if the array size is zero.
|
|
ETL_CONSTEXPR size_t | size () const ETL_NOEXCEPT |
| | Returns the size of the array.
|
|
ETL_CONSTEXPR size_t | max_size () const ETL_NOEXCEPT |
| | Returns the maximum possible size of the array.
|
|
array_view & | operator= (const array_view &other) ETL_NOEXCEPT |
| | Assign from a view.
|
|
template<typename TIterator> |
| void | assign (const TIterator begin_, const TIterator end_) |
| | Assign from iterators.
|
|
template<typename TIterator, typename TSize> |
| void | assign (const TIterator begin_, const TSize size_) |
| | Assign from iterator and size.
|
|
const_reference | operator[] (const size_t i) const ETL_NOEXCEPT |
| | Returns a const reference to the indexed value.
|
|
const_reference | at (const size_t i) const |
| | Returns a const reference to the indexed value.
|
|
void | swap (array_view &other) ETL_NOEXCEPT |
| | Swaps with another array_view.
|
|
void | remove_prefix (const size_type n) ETL_NOEXCEPT |
| | Shrinks the view by moving its start forward.
|
|
void | remove_suffix (const size_type n) ETL_NOEXCEPT |
| | Shrinks the view by moving its end backward.
|
|
void | fill (const T &value) |
| | Fills the array.
|
template<typename T>
class etl::array_view< T >
Array view.