Lagrange
StackVector< T, N > Struct Template Reference

Stack-allocated vector with a maximum size. More...

#include <lagrange/utils/StackVector.h>

Public Types

using iterator = typename std::array< T, N >::iterator
 
using const_iterator = typename std::array< T, N >::const_iterator
 

Public Member Functions

 StackVector (std::initializer_list< T > init)
 
size_t size () const
 
void clear ()
 
void resize (const size_t i)
 
void push_back (const T &v)
 
template<class... Args>
void emplace_back (Args &&... args)
 
void pop_back ()
 
T * data ()
 
const T * data () const
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
T & at (const size_t i)
 
const T & at (const size_t i) const
 
T & operator[] (const size_t i)
 
const T & operator[] (const size_t i) const
 
template<typename U , class UnaryOperation >
auto transformed (UnaryOperation op)
 
template<size_t D>
auto to_tuple ()
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 

Detailed Description

template<typename T, size_t N>
struct lagrange::StackVector< T, N >

Stack-allocated vector with a maximum size.

Template Parameters
TValue type.
NMaximum size.

The documentation for this struct was generated from the following file: