ONE - On-device Neural Engine
|
vector with cheap memory allocation More...
#include <SmallVector.h>
Public Types | |
using | value_type = T |
using | reference = T & |
using | iterator = T * |
using | const_iterator = const T * |
using | reverse_iterator = std::reverse_iterator< iterator > |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | size_type = size_t |
Public Member Functions | |
template<typename It > | |
small_vector (It begin, It end) | |
small_vector (size_t size, value_type initializer=value_type()) | |
small_vector () | |
small_vector (std::initializer_list< value_type > l) | |
size_t | size () const noexcept |
constexpr size_t | capacity () const |
void | resize (size_t new_size) noexcept |
resize to given new size | |
reference | operator[] (size_t idx) noexcept |
constexpr value_type | operator[] (size_t idx) const noexcept |
iterator | begin () noexcept |
iterator | end () noexcept |
reverse_iterator | rbegin () noexcept |
reverse_iterator | rend () noexcept |
const_iterator | begin () const noexcept |
const_iterator | end () const noexcept |
const_reverse_iterator | rbegin () const noexcept |
const_reverse_iterator | rend () const noexcept |
void | push_back (const value_type &e) noexcept |
void | push_back (value_type &&e) noexcept |
vector with cheap memory allocation
T | type of elements |
Capacity | maximum number of elements |
Definition at line 33 of file SmallVector.h.
using adt::small_vector< T, Capacity >::const_iterator = const T * |
Definition at line 39 of file SmallVector.h.
using adt::small_vector< T, Capacity >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 41 of file SmallVector.h.
using adt::small_vector< T, Capacity >::iterator = T * |
Definition at line 38 of file SmallVector.h.
using adt::small_vector< T, Capacity >::reference = T & |
Definition at line 37 of file SmallVector.h.
using adt::small_vector< T, Capacity >::reverse_iterator = std::reverse_iterator<iterator> |
Definition at line 40 of file SmallVector.h.
using adt::small_vector< T, Capacity >::size_type = size_t |
Definition at line 42 of file SmallVector.h.
using adt::small_vector< T, Capacity >::value_type = T |
Definition at line 36 of file SmallVector.h.
|
inline |
Definition at line 44 of file SmallVector.h.
References adt::small_vector< T, Capacity >::begin(), and adt::small_vector< T, Capacity >::end().
|
inlineexplicit |
Definition at line 50 of file SmallVector.h.
References adt::small_vector< T, Capacity >::begin(), and adt::small_vector< T, Capacity >::end().
|
inlineexplicit |
Definition at line 56 of file SmallVector.h.
|
inline |
Definition at line 58 of file SmallVector.h.
References adt::small_vector< T, Capacity >::begin().
|
inlinenoexcept |
Definition at line 113 of file SmallVector.h.
|
inlinenoexcept |
Definition at line 106 of file SmallVector.h.
Referenced by adt::small_vector< T, Capacity >::rend(), adt::small_vector< T, Capacity >::rend(), adt::small_vector< T, Capacity >::small_vector(), adt::small_vector< T, Capacity >::small_vector(), and adt::small_vector< T, Capacity >::small_vector().
|
inlineconstexpr |
Definition at line 72 of file SmallVector.h.
|
inlinenoexcept |
Definition at line 114 of file SmallVector.h.
|
inlinenoexcept |
Definition at line 107 of file SmallVector.h.
Referenced by adt::small_vector< T, Capacity >::rbegin(), adt::small_vector< T, Capacity >::rbegin(), adt::small_vector< T, Capacity >::small_vector(), and adt::small_vector< T, Capacity >::small_vector().
|
inlineconstexprnoexcept |
Definition at line 100 of file SmallVector.h.
|
inlinenoexcept |
Definition at line 91 of file SmallVector.h.
|
inlinenoexcept |
Definition at line 119 of file SmallVector.h.
|
inlinenoexcept |
Definition at line 125 of file SmallVector.h.
|
inlinenoexcept |
Definition at line 116 of file SmallVector.h.
References adt::small_vector< T, Capacity >::end().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
resize to given new size
Definition at line 78 of file SmallVector.h.
Referenced by mir::Index::resize(), and mir::Shape::resize().
|
inlinenoexcept |
Definition at line 67 of file SmallVector.h.
Referenced by mir::Index::at(), mir::Index::at(), mir::Shape::dim(), mir::Shape::dim(), adt::operator==(), mir::Index::rank(), and mir::Shape::rank().