drop-in replacement for vectors, with more "efficient" memory usage and access.
More...
#include <vector.hpp>
|
|
template<typename Int = size_t> |
| | fast_vector (const Int n=0) |
| |
|
size_t | push_back (T) |
| |
|
T | pop_back () |
| |
|
size_t | size () const |
| |
|
template<typename Int = size_t> |
| T & | operator[] (Int index) |
| |
|
template<typename Int = size_t> |
| T | operator[] (size_t index) const |
| |
|
template<typename Int = size_t> |
| T & | at (const Int index) |
| |
|
template<typename Int = size_t> |
| T | at (const Int index) const |
| |
|
template<typename Int = size_t> |
| void | resize (const Int n_, const uint align_byte_length_=std::alignment_of< T >()) const |
| | align_byte_length_ should be used to reallign the buffer, which is not yet implemented as realloc doesn't allocate.
|
| |
|
T * | begin () const |
| |
|
T * | end () const |
| |
template<typename T>
class quids::utils::fast_vector< T >
drop-in replacement for vectors, with more "efficient" memory usage and access.
The documentation for this class was generated from the following file: