A thin wrapper around std::vector with some extra bells and whistles (and without others).
More...
#include <vec.h>
Inheritance diagram for syten::Vec< T >:
Collaboration diagram for syten::Vec< T >:Public Member Functions | |
| MemoryUsage::MemorySize | allocSize () const |
| MemorySize support. More... | |
| ConstSpan< T > | cs () const |
| Creates a ConstSpan over this vector. More... | |
| MutSpan< T > | ms () |
| Creates a MutSpan over this vector. More... | |
| T & | operator() (long long int v) |
Access the element at position restrict(v, this->size()), allowing for wrap-arounds and negative indices. More... | |
| T const & | operator() (long long int v) const |
Access the element at position restrict(v, this->size()), allowing for wrap-arounds and negative indices. More... | |
| template<typename Archive > | |
| void | serialize (Archive &ar, const unsigned int) |
| Boost serialisation. More... | |
| template<std::size_t rank> | |
| Vec (std::array< T, rank > &&arr) | |
Ctor from a std::array of the same type. More... | |
| template<std::size_t rank> | |
| Vec (std::array< T, rank > const &arr) | |
Ctor from a std::array of the same type. More... | |
| Vec (std::vector< T > &&v) | |
| Move-ctor. More... | |
| Vec (std::vector< T > const &v) | |
| Copy-ctor. More... | |
Public Member Functions inherited from std::vector< T > | |
| T | assign (T... args) |
| T | at (T... args) |
| T | back (T... args) |
| T | begin (T... args) |
| T | capacity (T... args) |
| T | cbegin (T... args) |
| T | cend (T... args) |
| T | clear (T... args) |
| T | crbegin (T... args) |
| T | crend (T... args) |
| T | data (T... args) |
| T | emplace (T... args) |
| T | emplace_back (T... args) |
| T | empty (T... args) |
| T | end (T... args) |
| T | erase (T... args) |
| T | front (T... args) |
| T | get_allocator (T... args) |
| T | insert (T... args) |
| T | max_size (T... args) |
| T | operator= (T... args) |
| T | operator[] (T... args) |
| T | pop_back (T... args) |
| T | push_back (T... args) |
| T | rbegin (T... args) |
| T | rend (T... args) |
| T | reserve (T... args) |
| T | resize (T... args) |
| T | shrink_to_fit (T... args) |
| T | size (T... args) |
| T | swap (T... args) |
| T | vector (T... args) |
| T | ~vector (T... args) |
Additional Inherited Members | |
Public Attributes inherited from std::vector< T > | |
| T | elements |
| STL member. More... | |
A thin wrapper around std::vector with some extra bells and whistles (and without others).
Vec<T> with some elements a, b and c, use the mve helper function: mve(a, b, c).