Lagrange
|
Hybrid vector that uses the stack upto a maximum size, and the heap beyond that. More...
#include <lagrange/utils/SmallVector.h>
Inherits vector< T, SmallBufferAllocator< T, 8 > >.
Public Member Functions | |
SmallVector (const SmallVector &)=default | |
SmallVector & | operator= (const SmallVector &)=default |
SmallVector (SmallVector &&other) noexcept(std::is_nothrow_move_constructible< T >::value) | |
SmallVector & | operator= (SmallVector &&other) noexcept(std::is_nothrow_move_constructible< T >::value) |
SmallVector (std::size_t count) | |
SmallVector (std::size_t count, const T &value) | |
template<class InputIt > | |
SmallVector (InputIt first, InputIt last) | |
SmallVector (std::initializer_list< T > init) | |
Hybrid vector that uses the stack upto a maximum size, and the heap beyond that.
This class is derived from std::vector<>
, so any public method available for a std::vector<>
can be used here.
T | Value type. |
N | Maximum size. |