stack_list class
More...
#include <stack_list.h>
|
| | stack_list (std::vector< T > v={}) noexcept |
| | Construct a new stack list object.
|
| | stack_list (const stack_list &s) |
| | Copy constructor for stack list class.
|
| stack_list & | operator= (const stack_list &s) |
| | operator = for stack list class
|
|
void | clear () |
| | clear function
|
| size_t | size () |
| | size functon
|
| void | push (T key) |
| | push function
|
| T | top () |
| | top function
|
|
void | pop () |
| | pop function removes the top of the stack
|
| Iterator | begin () |
| | pointer to the top of the stack
|
| Iterator | end () |
| | pointer to the end of the stack
|
template<typename T>
class stack_list< T >
stack_list class
◆ stack_list() [1/2]
Construct a new stack list object.
- Parameters
-
◆ stack_list() [2/2]
Copy constructor for stack list class.
- Parameters
-
| s | the stack we want to copy |
◆ begin()
pointer to the top of the stack
- Returns
- Iterator
◆ end()
pointer to the end of the stack
- Returns
- Iterator
◆ operator=()
operator = for stack list class
- Parameters
-
| s | the stack we want to copy |
- Returns
- stack_list&
◆ push()
◆ size()
size functon
- Returns
- size_t the size of the stack
◆ top()
top function
- Returns
- T the top of the stack
The documentation for this class was generated from the following file:
- /Users/runner/work/AlgoPlus/AlgoPlus/src/classes/stack/stack_list.h