apytypes_scratch_vector.h
¶
-
template<typename T, typename PTR_T>
class SVIteratorBase¶ Public Types
-
using difference_type = std::ptrdiff_t¶
-
using reference = value_type&¶
-
using const_reference = const value_type&¶
-
using iterator_category = std::random_access_iterator_tag¶
Public Functions
-
inline SVIteratorBase &operator++() noexcept¶
-
inline SVIteratorBase &operator--() noexcept¶
-
inline SVIteratorBase operator++(int) noexcept¶
-
inline SVIteratorBase operator--(int) noexcept¶
-
inline SVIteratorBase operator+(difference_type n) const noexcept¶
-
inline SVIteratorBase operator-(difference_type n) const noexcept¶
-
inline SVIteratorBase &operator+=(difference_type n) noexcept¶
-
inline SVIteratorBase &operator-=(difference_type n) noexcept¶
-
inline const_reference operator[](std::size_t n) const noexcept¶
-
inline const_reference operator*() const noexcept¶
-
inline auto operator-(SVIteratorBase other) const noexcept¶
-
inline bool operator==(SVIteratorBase other) const noexcept¶
-
inline bool operator!=(SVIteratorBase other) const noexcept¶
-
inline bool operator<(SVIteratorBase other) const noexcept¶
-
inline bool operator>(SVIteratorBase other) const noexcept¶
-
inline bool operator<=(SVIteratorBase other) const noexcept¶
-
inline bool operator>=(SVIteratorBase other) const noexcept¶
-
using difference_type = std::ptrdiff_t¶
-
template<typename T, std::size_t _N_SCRATCH_ELEMENTS = 2, typename Allocator = std::allocator<T>>
class ScratchVector¶ Public Types
-
using size_type = std::size_t¶
-
using difference_type = std::ptrdiff_t¶
-
using reference = value_type&¶
-
using const_reference = const value_type&¶
-
using pointer = typename std::allocator_traits<allocator_type>::pointer¶
-
using const_pointer = typename std::allocator_traits<allocator_type>::const_pointer¶
-
using iterator = SVIteratorBase<T, T*>¶
-
using const_iterator = SVIteratorBase<const T, const T*>¶
-
using const_reverse_iterator = std::reverse_iterator<const_iterator>¶
Public Functions
-
inline ScratchVector() noexcept¶
-
inline ~ScratchVector()¶
-
inline ScratchVector(const ScratchVector &other)¶
-
template<typename RANDOM_ACCESS_VECTOR_TYPE, bool SPECIALIZED = false>
inline ScratchVector &operator=(const RANDOM_ACCESS_VECTOR_TYPE &other)¶
-
inline ScratchVector &operator=(const ScratchVector &other)¶
-
inline const_iterator begin() const noexcept¶
-
inline const_iterator cbegin() const noexcept¶
-
inline const_iterator end() const noexcept¶
-
inline const_iterator cend() const noexcept¶
-
inline reverse_iterator rbegin() noexcept¶
-
inline const_reverse_iterator rbegin() const noexcept¶
-
inline const_reverse_iterator crbegin() const noexcept¶
-
inline reverse_iterator rend() noexcept¶
-
inline const_reverse_iterator rend() const noexcept¶
-
inline const_reverse_iterator crend() const noexcept¶
-
inline const_reference back() const¶
-
inline const_reference operator[](size_type pos) const¶
-
inline const_reference at(size_type pos) const¶
-
inline void pop_back()¶
-
inline explicit operator std::vector<T>() const¶
Convert a
ScratchVector
into astd::vector
-
using size_type = std::size_t¶