Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
lampda::utils::Queue< T, MaxElements > Struct Template Reference

Classes

struct  Element
 
struct  Optional
 We need a fake optional, has the core is compiled in C++11. More...
 

Public Member Functions

bool has_elements () const
 
bool enqueue (const T &element)
 Add an element to the queue.
 
Optional dequeue ()
 Remove and return the first element from the queue, or nothing.
 

Member Function Documentation

◆ enqueue()

template<typename T , size_t MaxElements = 10>
bool lampda::utils::Queue< T, MaxElements >::enqueue ( const T &  element)
inline

Add an element to the queue.

Returns
false if the element cannot be added

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