76 template<typename InputIterator>
221 const T&
last() const noexcept;
283 std::ostream&
write(std::ostream& os,
bool inc_hex) const;
289#include <misc/gen/TVector.hpp>
Counted vector having additional methods and operators for ease of usage. This template class extends...
Definition TVector.h:20
base_type::size_type size_type
Size type of this template.
Definition TVector.h:29
base_type getBase()
Returns the base type to access it methods explicitly.
T & first()
Gets the first element of the vector.
TVector(TVector &&) noexcept=default
Move constructor.
std::vector< T > base_type
Base type of this template .
Definition TVector.h:25
bool detachAt(size_type index)
Removes specific item from the list by index.
T & get(size_type i)
Gets entry from index position.
bool endsWith(T t) const
Checks if the last element is of the passed value.
base_type::value_type value_type
Value type contained by this vector template.
Definition TVector.h:33
const iter_type const_iter_type
Iteration const type of the template.
Definition TVector.h:41
bool isEmpty() const
Returns true when empty false otherwise.
bool addAt(const T &t, size_type index)
Adds an item at index position.
static const size_t npos
Value returned by various member functions when they fail.
Definition TVector.h:46
TVector(const TVector &v)
Copy constructor.
std::ostream & write(std::ostream &os, bool inc_hex) const
TVector()=default
Default constructor.
void flush()
Removes all entries from the vector.
TVector & prepend(const T &t)
Prepends an entry to the vectors items at the beginning of the vector.
size_type count() const
Returns the amount of entries in the vector.
bool startsWith(T t) const
Checks if the first element is of the passed value.
size_type add(const T &t)
Adds item at the end of the vector.
bool detach(const T &t)
Removes specific item from the list by instance. Uses the compare operator from type T to find it.
TIterator< value_type > iter_type
Iteration type of the template.
Definition TVector.h:37
size_type find(const T &) const
Finds an entry by instance in the vector.
T & last()
Gets the last element of the vector.
TVector & append(const T &t)
Appends an entry to the vectors items at the end of the vector.
Definition Application.h:10