Template Class SmallVector
Defined in File SmallVector.h
Class Documentation
-
template<class T, std::size_t N = 8>
class SmallVector a vector with room for N items inside itself
Public Types
-
using size_type = std::size_t
-
using difference_type = std::ptrdiff_t
-
using const_reverse_iterator = std::reverse_iterator<const_iterator>
Public Functions
-
inline SmallVector(void) noexcept
-
template<std::input_iterator I, std::sentinel_for<I> S>
SmallVector(I first, S last) the items of [ first , last ), in their order
-
SmallVector(const SmallVector &other)
-
SmallVector(SmallVector &&other) noexcept(std::is_nothrow_move_constructible_v<T>)
the items of other, which is left empty
-
SmallVector &operator=(const SmallVector &other)
-
SmallVector &operator=(SmallVector &&other) noexcept(std::is_nothrow_move_constructible_v<T>)
-
~SmallVector()
-
void swap(SmallVector &other)
-
inline bool empty(void) const
-
inline std::size_t size(void) const
-
inline std::size_t capacity(void) const
-
inline bool small(void) const
the items are inside the vector
-
inline const_iterator begin(void) const
-
inline const_iterator end(void) const
-
inline const_iterator cbegin(void) const
-
inline const_iterator cend(void) const
-
inline reverse_iterator rbegin(void)
-
inline reverse_iterator rend(void)
-
inline const_reverse_iterator rbegin(void) const
-
inline const_reverse_iterator rend(void) const
-
template<class ...Args>
T &emplace_back(Args&&... args) an item made from the arguments at the end, which may refer to items of the vector
-
void pop_back(void)
- Pre:
the vector is not empty
-
void reserve(std::size_t n)
room for n items
-
void clear(void)
removes the items, keeping the memory
-
inline bool operator==(const SmallVector &o) const
-
using size_type = std::size_t