#include <PstVector.h>
Public Member Functions | |
| PstVector< T >::pointer | allocate (typename PstVector< T >::size_type num) |
| void | construct (typename PstVector< T >::pointer p) |
| template<class... A> | |
| void | construct (typename PstVector< T >::pointer p, A &... arg) |
| void | construct (typename PstVector< T >::pointer p, T &&data) |
| void | destroy (typename PstVector< T >::pointer p) |
| void | deallocate (typename PstVector< T >::pointer p) |
Get a const reference to the item stored at position `índex' in the PstVector. */ const_reference operator [] (size_type index) const;
/** Get a reference to the item stored at position `índex' in the PstVector. */ reference operator [] (size_type index);
private: /** Simple basic allocator class to allocate and construct vector items.
| PstVector< T >::pointer allocate | ( | typename PstVector< T >::size_type | num | ) |
Allocate but don't initialize num elements of type T
Initialize elements of allocated storage p using its default constructor
| void construct | ( | typename PstVector< T >::pointer | p, |
| A &... | arg ) |
Initialize elements of allocated storage p using constructor with arguments arg
Initialize elements of allocated storage p using the move constructor