Fleet  0.0.9
Inference in the LOT
Public Member Functions | List of all members
Stack< T > Class Template Reference

#include <Stack.h>

Public Member Functions

 Stack ()
 
template<typename... Args>
void emplace_back (Args... args)
 
void reserve (size_t t)
 
void clear ()
 
void push (const T &val)
 Push val onto the stack. More...
 
void push (const T &&val)
 
void pop ()
 Remove top from the stack. More...
 
void popn (size_t n)
 Remove n from the stack. More...
 
top ()
 
T & topref ()
 
toppop ()
 
const std::vector< T > & get_value () const
 
size_t size () const
 
bool empty () const
 
std::string string () const
 
auto begin ()
 These are for iterating through the underlying vector. More...
 
auto end ()
 
auto rbegin ()
 
auto rend ()
 

Detailed Description

template<typename T>
class Stack< T >

Author
Steven Piantadosi
Date
06/09/20

Constructor & Destructor Documentation

◆ Stack()

template<typename T>
Stack< T >::Stack ( )
inline

Member Function Documentation

◆ 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()

template<typename T>
auto Stack< T >::end ( )
inline

◆ get_value()

template<typename T>
const std::vector<T>& Stack< T >::get_value ( ) const
inline

◆ pop()

template<typename T>
void Stack< T >::pop ( )
inline

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
n

◆ push() [1/2]

template<typename T>
void Stack< T >::push ( const T &  val)
inline

Push val onto the stack.

Parameters
val

◆ 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()

template<typename T>
T Stack< T >::top ( )
inline

Return the top element.

Returns

◆ toppop()

template<typename T>
T Stack< T >::toppop ( )
inline

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

The documentation for this class was generated from the following file: