52 throw std::out_of_range(
"pop_back on empty Vector");
94 if (
this == &
other)
return *
this;
112 other.data =
nullptr;
117 if (
this != &
other) {
124 other.data =
nullptr;
Definition scapegoat_tree.hpp:53
Vector & operator=(const Vector &other)
Definition vector.hpp:93
const T & operator[](unsigned int index) const
Definition vector.hpp:79
void push_back(const T &value)
Definition vector.hpp:34
T * begin()
Definition vector.hpp:68
unsigned int size() const
Definition vector.hpp:29
T * data
Definition vector.hpp:10
int nElements
Definition vector.hpp:9
Vector(Vector &&other) noexcept
Definition vector.hpp:107
T & operator[](unsigned int index)
Definition vector.hpp:74
Vector(const Vector &other)
Definition vector.hpp:83
T * end()
Definition vector.hpp:69
T pop_back()
Definition vector.hpp:50
Vector & operator=(Vector &&other) noexcept
Definition vector.hpp:116
unsigned int _size
Definition vector.hpp:8
~Vector()
Definition vector.hpp:19