TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
for std::invalid_argument More...
#include <stack.hpp>
Public Types | |
using | value_type = ValueType |
Public Member Functions | |
void | display () const |
std::vector< value_type > | toVector () const |
bool | isEmptyStack () const |
void | push (const value_type &item) |
value_type | top () const |
void | pop () |
void | clear () |
Private Member Functions | |
void | ensureNotEmpty () const |
Private Attributes | |
std::shared_ptr< Node< value_type > > | stackTop |
std::size_t | size = 0 |
size of stack | |
for std::invalid_argument
for Node Definition of the stack class
value_type | type of data nodes of the linked list in the stack should contain |
using stack< ValueType >::value_type = ValueType |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |