small_vector.h
| File Path | engine/include/conjure/core/containers/small_vector.h |
| API ↗ | Containers |
small_vector: a std::vector with inline storage for the first N elements.
Classes
| File | Description |
|---|---|
small_vector |
Type Aliases
small_vector::const_iterator
small_vector::const_pointer
small_vector::const_reference
small_vector::const_reverse_iterator
small_vector::difference_type
small_vector::iterator
small_vector::pointer
small_vector::reference
small_vector::reverse_iterator
small_vector::size_type
small_vector::value_type
Unions
small_vector::inline_storage
union inline_storage {
T elements[N];
inline_storage() noexcept {}
~inline_storage() {}
inline_storage(const inline_storage &) = delete;
inline_storage &operator=(const inline_storage &) = delete;
};
Raw inline storage. A union keeps the natural alignment of T without an alignas specifier and never constructs the elements itself.
Functions
Public
swap
swaptemplate <typename T, usize N> void swap(
small_vector<T, N> &left,
small_vector<T, N> &right) noexcept;