7 #ifndef Fw_StackBase_HPP 8 #define Fw_StackBase_HPP 68 const auto& e = stack.
at(size - 1 - i);
69 const auto status = this->
push(e);
PlatformSizeType FwSizeType
virtual FwSizeType getSize() const =0
void copyDataFrom(const StackBase< T > &stack)
Copy data from another stack.
#define FW_MIN(a, b)
MIN macro.
Success peek(T &e, FwSizeType index=0) const
virtual FwSizeType getCapacity() const =0
virtual Success push(const T &e)=0
virtual ~StackBase()=default
Destructor.
virtual Success pop(T &e)=0
virtual const T & at(FwSizeType index) const =0
virtual void clear()=0
Clear the container.
StackBase()
Zero-argument constructor.