|
constexpr | AStaticVector (const AStaticVector &rhs) |
|
constexpr | AStaticVector (AStaticVector &&rhs) noexcept |
|
constexpr | AStaticVector (std::initializer_list< StoredType > rhs) noexcept |
|
template<typename Iterator> |
constexpr | AStaticVector (Iterator begin, Iterator end) noexcept |
|
AStaticVector & | operator= (const AStaticVector &rhs) |
|
AStaticVector & | operator= (AStaticVector &&rhs) noexcept |
|
constexpr bool | full () const noexcept |
|
constexpr StoredType * | data () noexcept |
|
constexpr const StoredType * | data () const noexcept |
|
constexpr iterator | begin () noexcept |
|
constexpr const_iterator | begin () const noexcept |
|
constexpr iterator | end () noexcept |
|
constexpr const_iterator | end () const noexcept |
|
constexpr StoredType & | front () noexcept |
|
constexpr StoredType & | back () noexcept |
|
constexpr const StoredType & | front () const noexcept |
|
constexpr const StoredType & | back () const noexcept |
|
template<typename... Args> |
constexpr void | emplace_back (Args &&... args) noexcept |
|
constexpr void | push_back (StoredType value) noexcept |
|
constexpr void | push_front (StoredType value) noexcept |
|
constexpr void | pop_back () noexcept |
|
constexpr void | pop_front () noexcept |
|
constexpr StoredType & | operator[] (std::size_t index) noexcept |
|
constexpr StoredType & | operator[] (std::size_t index) const noexcept |
|
constexpr bool | empty () const noexcept |
|
constexpr void | clear () noexcept |
|
constexpr std::size_t | size () const noexcept |
|
template<typename OtherIterator> |
constexpr iterator | insert (iterator at, OtherIterator begin, OtherIterator end) |
|
constexpr iterator | insert (iterator at, StoredType value) |
|
constexpr iterator | erase (iterator at) |
|
constexpr iterator | erase (iterator begin, iterator end) |
|
void | reserve (std::size_t) |
|
template<typename OtherContainer> |
iterator | insertAll (const OtherContainer &c) noexcept |
|
template<typename OtherContainer> |
iterator | insertAll (OtherContainer &&c) noexcept |
|
template<typename OtherContainer> |
iterator | insertAll (iterator at, const OtherContainer &c) noexcept |
|
template<typename OtherContainer> |
iterator | insertAll (iterator at, OtherContainer &&c) noexcept |
|
void | removeAll (const StoredType &item) noexcept |
|
void | removeFirst (const StoredType &item) noexcept |
|
template<typename OtherContainer> |
bool | isSubsetOf (const OtherContainer &c) const noexcept |
|
bool | contains (const StoredType &value) const noexcept |
|
std::size_t | sizeInBytes () const noexcept |
|
StoredType & | at (std::size_t index) |
|
const StoredType & | at (std::size_t index) const |
|
self & | operator<< (const StoredType &rhs) noexcept |
|
self & | operator<< (StoredType &&rhs) noexcept |
|
template<typename OtherContainer, std::enable_if_t<!std::is_convertible_v< OtherContainer, StoredType >, bool > = true> |
self & | operator<< (const OtherContainer &c) noexcept |
|
template<typename OtherContainer, std::enable_if_t<!std::is_convertible_v< OtherContainer, StoredType >, bool > = true> |
self & | operator<< (OtherContainer &&c) noexcept |
|
StoredType & | first () noexcept |
|
const StoredType & | first () const noexcept |
|
StoredType & | last () noexcept |
|
const StoredType & | last () const noexcept |
|
AOptional< size_t > | indexOf (const StoredType &value) const noexcept |
|
void | sort () noexcept |
|
template<typename Comparator> |
void | sort (Comparator &&comparator) noexcept |
|
void | removeAt (size_t index) noexcept |
|
template<typename Predicate> |
void | removeIf (Predicate &&predicate) noexcept |
|
ASet< StoredType > | toSet () const noexcept |
|
template<aui::invocable< const StoredType & > UnaryOperation> |
auto | map (UnaryOperation &&transformer) const -> AVector< decltype(transformer(std::declval< StoredType >()))> |
|
template<aui::invocable< const StoredType & > UnaryOperation> |
auto | toMap (UnaryOperation &&transformer) const -> AMap< decltype(transformer(std::declval< StoredType >()).first), decltype(transformer(std::declval< StoredType >()).second)> |
|
template<aui::invocable< StoredType & > UnaryOperation> |
auto | toMap (UnaryOperation &&transformer) -> AMap< decltype(transformer(std::declval< StoredType >()).first), decltype(transformer(std::declval< StoredType >()).second)> |
|
template<aui::predicate< const StoredType & > Predicate> |
self | filter (Predicate &&predicate) |
|
| operator std::span< StoredType > () |
|
| operator std::span< const StoredType > () const |
|
template<typename StoredType, std::size_t MaxSize>
class AStaticVector< StoredType, MaxSize >
Vector-like container up to maxSize elements inplace.
- Template Parameters
-
T | stored type |
maxSize | maximum vector size |
Vector-like container optimized for the case when it contains up to maxSize in place, avoiding dynamic allocation. AStaticVector could not contain more than maxSize elements.