42 template <
typename TYPE,
typename ALLOC>
58 virtual void add(
const TYPE& e);
123 template <
typename TYPE,
typename ALLOC>
129 template <
typename TYPE,
typename ALLOC>
133 return this->
pop(index);
136 template <
typename TYPE,
typename ALLOC>
138 while (!this->
empty()) {
Base class for variable-size serial containers.
Definition baseList.h:43
virtual TYPE pop(integer index)=0
Removes an element from a specific index.
virtual void pushBegin(const TYPE &e)=0
Inserts an element at the beginning of the list.
virtual TYPE popBegin()=0
Removes an element from the beginning of the list.
virtual TYPE popEnd()=0
Removes an element from the end of the list.
virtual void clear()
Removes all elements.
Definition baseList.h:137
virtual TYPE remove(const TYPE &e)
Removes an element from the list.
Definition baseList.h:130
virtual void add(const TYPE &e)
Adds an element to the end of the list.
Definition baseList.h:124
virtual void push(integer index, const TYPE &e)=0
Inserts an element at a specific index.
virtual void pushEnd(const TYPE &e)=0
Inserts an element at the end of the list.
bool empty() const
Checks if the container is empty.
Definition container.h:155
Abstract base class for sequential containers with index-based access.
Definition serial.h:34
virtual u_integer indexOf(const TYPE &e) const =0
Finds the index of the specified element.
Main namespace for the project Original.
Definition algorithms.h:21
std::int64_t integer
64-bit signed integer type for arithmetic operations
Definition config.h:15
Defines an abstract base class for sequential containers with index-based access.