Vector

template<typename Element>
class Vector : public Countable<Element>

Vector class template.

Public Functions

bool setSize(unsigned int newSize)

Reduce or increase number of items.

If increasing number of items, new items will be set to current nil value. If reducing number of items, old items will be deleted.

Returns

true – on success, false on memory reallocation failure

inline void trimToSize()

Reduce capacity to match current size.

template<bool is_const>
class Iterator