35 template<
typename TYPE,
36 template <
typename,
typename>
typename SERIAL = chain,
37 template <
typename>
typename ALLOC = allocator>
55 stack(
const std::initializer_list<TYPE>&
lst);
127 template<
typename TYPE,
128 template <
typename,
typename>
typename SERIAL,
129 template <
typename>
typename ALLOC>
133 template<
typename TYPE,
134 template <
typename,
typename>
typename SERIAL,
135 template <
typename>
typename ALLOC>
139 template<
typename TYPE,
140 template <
typename,
typename>
typename SERIAL,
141 template <
typename>
typename ALLOC>
145 template<
typename TYPE,
146 template <
typename,
typename>
typename SERIAL,
147 template <
typename>
typename ALLOC>
149 if (
this == &
other)
return *
this;
150 this->serial_ =
other.serial_;
154 template<
typename TYPE,
155 template <
typename,
typename>
typename SERIAL,
156 template <
typename>
typename ALLOC>
159 this->operator=(std::move(
other));
162 template<
typename TYPE,
163 template <
typename,
typename>
typename SERIAL,
164 template <
typename>
typename ALLOC>
170 this->serial_ = std::move(
other.serial_);
175 template<
typename TYPE,
176 template <
typename,
typename>
typename SERIAL,
177 template <
typename>
typename ALLOC>
179 this->serial_.pushEnd(
e);
182 template<
typename TYPE,
183 template <
typename,
typename>
typename SERIAL,
184 template <
typename>
typename ALLOC>
186 return this->serial_.popEnd();
189 template<
typename TYPE,
190 template <
typename,
typename>
typename SERIAL,
191 template <
typename>
typename ALLOC>
193 return this->serial_.getEnd();
196 template<
typename TYPE,
197 template <
typename,
typename>
typename SERIAL,
198 template <
typename>
typename ALLOC>
Non-cyclic doubly linked list implementation.
Adapter class that provides unified interface for various container types.
Definition containerAdapter.h:55
Unique ownership smart pointer with move semantics.
Definition ownerPtr.h:37
Abstract base class for sequential containers with index-based access.
Definition serial.h:34
Last-In-First-Out (LIFO) container adapter.
Definition stack.h:38
TYPE top() const
Accesses the top element of the stack.
Definition stack.h:192
stack & operator=(const stack &other)
Copy assignment operator.
Definition stack.h:148
void push(const TYPE &e)
Pushes element to the top of the stack.
Definition stack.h:178
TYPE pop()
Removes and returns top element from the stack.
Definition stack.h:185
stack(const SERIAL< TYPE, ALLOC< TYPE > > &serial=SERIAL< TYPE, ALLOC< TYPE > >{})
Constructs a stack with specified underlying container and allocator.
Definition stack.h:130
std::string className() const override
Gets the class name identifier.
Definition stack.h:199
Base class for container adapters with common interfaces.
Main namespace for the project Original.
Definition algorithms.h:21