![]() |
LLGL 0.05 Beta
|
Constant array view container template. Keeps pointer to array and length. More...
#include <ArrayView.h>
Public Types | |
| using | value_type = const T |
| using | size_type = std::size_t |
| using | difference_type = std::ptrdiff_t |
| using | const_reference = const T& |
| using | reference = const_reference |
| using | const_pointer = const T* |
| using | pointer = const_pointer |
| using | const_iterator = const T* |
| using | iterator = const_iterator |
| using | const_reverse_iterator = std::reverse_iterator<const_iterator> |
| using | reverse_iterator = const_reverse_iterator |
Public Member Functions | |
| ArrayView ()=default | |
| ArrayView (const ArrayView &)=default | |
| ArrayView (ArrayView &&)=default | |
| ArrayView & | operator= (const ArrayView &)=default |
| ArrayView & | operator= (ArrayView &&)=default |
| ArrayView (const std::initializer_list< T > &list) | |
| Initializes the array view with an std::initializer_list. | |
| ArrayView (const_pointer data, size_type size) | |
| Initializes the array view with a pointer to the data and size. | |
| template<std::size_t N> | |
| ArrayView (const T(&data)[N]) | |
Initializes the array view with the specified fixed size array. The size of this container will be equal to the template parameter N. | |
| template<template< typename, typename > class OtherContainer, typename OtherAllocator> | |
| ArrayView (const OtherContainer< T, OtherAllocator > &other) | |
| bool | empty () const |
| size_type | size () const |
| const_pointer | data () const |
| const_reference | at (size_type pos) const |
| const_reference | front () const |
| const_reference | back () const |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_reverse_iterator | rbegin () const |
| const_reverse_iterator | crbegin () const |
| const_iterator | end () const |
| const_iterator | cend () const |
| const_reverse_iterator | rend () const |
| const_reverse_iterator | crend () const |
| const_reference | operator[] (size_type pos) const |
Constant array view container template. Keeps pointer to array and length.
| T | Specifies the data type of the container elements. |
| using LLGL::ArrayView< T >::const_iterator = const T* |
| using LLGL::ArrayView< T >::const_pointer = const T* |
| using LLGL::ArrayView< T >::const_reference = const T& |
| using LLGL::ArrayView< T >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
| using LLGL::ArrayView< T >::difference_type = std::ptrdiff_t |
| using LLGL::ArrayView< T >::iterator = const_iterator |
| using LLGL::ArrayView< T >::pointer = const_pointer |
| using LLGL::ArrayView< T >::reference = const_reference |
| using LLGL::ArrayView< T >::reverse_iterator = const_reverse_iterator |
| using LLGL::ArrayView< T >::size_type = std::size_t |
| using LLGL::ArrayView< T >::value_type = const T |
|
default |
|
default |
|
default |
|
inline |
Initializes the array view with an std::initializer_list.
|
inline |
Initializes the array view with a pointer to the data and size.
|
inline |
Initializes the array view with the specified fixed size array. The size of this container will be equal to the template parameter N.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |