Stack#
#include <TpltStack.h>
How to reference this class#
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Stack <class-template-stack>`
[Stack](#class-template-stack)
Detailed description#
List of Public Methods#
Complete Member Function Documentation#
getBase#
T * Stack<T>::getBase()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`T * Stack<T>::getBase() <stack-public-t-ptr-stack-t-getbase>`
[T * Stack<T>::getBase()](#stack-public-t-ptr-stack-t-getbase)
isEmpty#
int Stack<T>::isEmpty() const
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`int Stack<T>::isEmpty() const <stack-public-int-stack-t-isempty-const>`
[int Stack<T>::isEmpty() const](#stack-public-int-stack-t-isempty-const)
peek#
T & Stack<T>::peek()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`T & Stack<T>::peek() <stack-public-t-ref-stack-t-peek>`
[T & Stack<T>::peek()](#stack-public-t-ref-stack-t-peek)
pop#
T & Stack<T>::pop()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`T & Stack<T>::pop() <stack-public-t-ref-stack-t-pop>`
[T & Stack<T>::pop()](#stack-public-t-ref-stack-t-pop)
push#
int Stack<T>::push(const T &)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`int Stack<T>::push(const T &) <stack-public-int-stack-t-push-const-t-ref>`
[int Stack<T>::push(const T &)](#stack-public-int-stack-t-push-const-t-ref)
Stack#
Stack<T>::Stack(const int t=10)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Stack<T>::Stack(const int t=10) <stack-public-stack-t-stack-const-int-t-equal-10>`
[Stack<T>::Stack(const int t=10)](#stack-public-stack-t-stack-const-int-t-equal-10)
~Stack#
Stack<T>::~Stack()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`Stack<T>::~Stack() <stack-public-stack-t-dtor-stack>`
[Stack<T>::~Stack()](#stack-public-stack-t-dtor-stack)
Attributes Documentation#
T* Stack<T>::base
int Stack<T>::taille
T* Stack<T>::top