Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::MiniStack< T > Class Template Reference

Helper class that provides the functionality of a stack on an underlying container. More...

#include <MiniStack.hh>

Public Types

using size_type = ::celeritas::size_type
 
using value_type = T
 

Public Member Functions

CELER_FUNCTION MiniStack (Span< T > storage)
 Construct with underlying storage.
 
CELER_FUNCTION void push (T element)
 Insert a new element at the top of the stack.
 
CELER_FUNCTIONpop ()
 Remove and return the top element of the stack.
 
CELER_FORCEINLINE_FUNCTION bool empty () const
 Whether there are any elements in the container.
 
CELER_FORCEINLINE_FUNCTION size_type size () const
 Get the number of elements.
 
CELER_FORCEINLINE_FUNCTION size_type capacity () const
 Get the number of elements that can fit in the allocated storage.
 

Detailed Description

template<class T>
class celeritas::MiniStack< T >

Helper class that provides the functionality of a stack on an underlying container.


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