Public Types | |
types | |
typedef T | value_type |
typedef const T * | pointer |
typedef const T & | reference |
typedef const T & | const_reference |
typedef const T * | const_iterator |
typedef const_iterator | iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
typedef const_reverse_iterator | reverse_iterator |
typedef std::size_t | size_type |
typedef ptrdiff_t | difference_type |
Public Member Functions | |
construct/copy | |
constexpr | array_ref () |
constexpr | array_ref (const array_ref &)=default |
array_ref & | operator= (const array_ref &)=default |
constexpr | array_ref (const T *array, const size_type length) |
template<typename Allocator > | |
array_ref (const std::vector< T, Allocator > &v) | |
template<typename traits , typename Allocator > | |
array_ref (const std::basic_string< T, traits, Allocator > &s) | |
template<size_type N> | |
constexpr | array_ref (const T(&a)[N]) |
template<size_type N> | |
constexpr | array_ref (const std::array< T, N > &a) |
constexpr array_ref | substr (const size_type pos, const size_type n=size_type(-1)) const |
iterators | |
constexpr const_iterator | begin () const |
constexpr const_iterator | end () const |
constexpr const_iterator | cbegin () const |
constexpr const_iterator | cend () const |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
capacity | |
constexpr size_type | size () const |
constexpr size_type | max_size () const |
constexpr bool | empty () const |
element access | |
constexpr const T & | operator[] (const size_type i) const |
constexpr const T & | at (const size_type i) const |
constexpr const T & | front () const |
constexpr const T & | back () const |
constexpr const T * | data () const |
Outgoing conversion operators | |
These functions provide explicit conversions to selected other contiguous sequence types using those types' iterator-range constructors. We provide both explicit conversion operators for use in variable initialization and short member functions for use in function calls. The operators are | |
operator std::vector< T > () const | |
std::vector< T > | vec () const |
template<typename traits , typename Allocator > | |
operator std::basic_string< T, traits, Allocator > () const | |
std::basic_string< T > | str () const |
mutators | |
void | clear () |
void | remove_prefix (const size_type n) |
void | remove_suffix (const size_type n) |
void | pop_back () |
void | pop_front () |
typedef const T* flecsi::util::array_ref< T >::const_iterator |
typedef const_iterator flecsi::util::array_ref< T >::iterator |
Because array_ref controls a constant sequence, iterator and const_iterator are the same type.
typedef const T* flecsi::util::array_ref< T >::pointer |
|
inline |
empty() == true
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inline |
remove_suffix(1)
|
inline |
remove_prefix(1)
|
inline |
n
elements without moving the end pointer.
|
inline |
n
elements without moving the start pointer.
|
inline |