10 using std::invalid_argument;
28 ostream& operator<<(ostream& out, const Vector<FUN>& v);
82 const FUN&
operator[](
const unsigned int idx)
const;
88 unsigned int length()
const;
94 unsigned int size()
const;
105 friend ostream& operator<< <FUN>(ostream& out,
const Vector<FUN>& v);
Vector()
Constructs an empty vector.
Definition: vector.hpp:3
A (very neat) vector.
Definition: vector.h:37
FUN & operator[](const unsigned int idx)
Reads an element of the vector.
Definition: vector.hpp:54
unsigned int size() const
The size of the underlying storage.
Definition: vector.hpp:85
unsigned int length() const
The number of items stored in the vector.
Definition: vector.hpp:78
~Vector()
Destructor.
Definition: vector.hpp:25
void push_back(FUN v)
Add elements to the vector.
Definition: vector.hpp:32