Allocator Builder
Policy Based C++ Template Allocator Library
 All Classes Functions Variables Enumerations Enumerator Groups Pages
alb::v_100::internal::stack< T, MaxSize > Class Template Reference

#include <stack.hpp>

Public Types

using value_type = T
 

Public Member Functions

bool push (T v) noexcept
 
bool pop (T &v) noexcept
 
bool empty () const noexcept
 

Static Public Attributes

static const size_t max_size = MaxSize
 

Detailed Description

template<typename T, unsigned MaxSize>
class alb::v_100::internal::stack< T, MaxSize >

Simple stack with the same interface as boost::lockfree::stack with a fixed number of elements It's intend is to be used as not shared variant in the FreeList

Template Parameters
TThe element type to be put into the stack
MaxSizeThe maximum number of elements that can be put into the stack

Definition at line 29 of file stack.hpp.


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