#include <Stack.h>
template<typename T>
class Stack< T >
- Author
- Steven Piantadosi
- Date
- 06/09/20
◆ Stack()
◆ begin()
template<typename T>
auto Stack< T >::begin |
( |
| ) |
|
|
inline |
These are for iterating through the underlying vector.
◆ clear()
template<typename T>
void Stack< T >::clear |
( |
| ) |
|
|
inline |
◆ emplace_back()
template<typename T>
template<typename... Args>
void Stack< T >::emplace_back |
( |
Args... |
args | ) |
|
|
inline |
◆ empty()
template<typename T>
bool Stack< T >::empty |
( |
| ) |
const |
|
inline |
◆ end()
◆ get_value()
template<typename T>
const std::vector<T>& Stack< T >::get_value |
( |
| ) |
const |
|
inline |
◆ pop()
Remove top from the stack.
Remove the top element (returning void)
◆ popn()
template<typename T>
void Stack< T >::popn |
( |
size_t |
n | ) |
|
|
inline |
Remove n from the stack.
- Parameters
-
◆ push() [1/2]
template<typename T>
void Stack< T >::push |
( |
const T & |
val | ) |
|
|
inline |
Push val onto the stack.
- Parameters
-
◆ push() [2/2]
template<typename T>
void Stack< T >::push |
( |
const T && |
val | ) |
|
|
inline |
◆ rbegin()
template<typename T>
auto Stack< T >::rbegin |
( |
| ) |
|
|
inline |
◆ rend()
template<typename T>
auto Stack< T >::rend |
( |
| ) |
|
|
inline |
◆ reserve()
template<typename T>
void Stack< T >::reserve |
( |
size_t |
t | ) |
|
|
inline |
◆ size()
template<typename T>
size_t Stack< T >::size |
( |
| ) |
const |
|
inline |
◆ string()
template<typename T>
std::string Stack< T >::string |
( |
| ) |
const |
|
inline |
◆ top()
Return the top element.
- Returns
◆ toppop()
Return the top element.
- Returns
◆ topref()
template<typename T>
T& Stack< T >::topref |
( |
| ) |
|
|
inline |
Get a reference to the top element (allowing in-place modification)
- Returns
◆ value
template<typename T>
std::vector<T> Stack< T >::value |
The documentation for this class was generated from the following file: