|
STL Memory Versioning
|
A versioned mimic of a stl::queue, suitable for multithread. More...
#include <vs_queue.h>
Public Types | |
| typedef Versioned< std::queue< _Key >, _Strategy > | _Versioned |
| typedef std::queue< _Key >::size_type | size_type |
Public Member Functions | |
| vs_queue () | |
| Creates a vs_queue with no elements. More... | |
| vs_queue (std::initializer_list< _Key > __l) | |
| Builds a vs_queue from an initializer_list. More... | |
| vs_queue (const vs_queue &__vs_queue) | |
| vs_queue copy constructor More... | |
| const _Key & | front () const |
| begin constant reference More... | |
| const _Key & | back () |
| end reference More... | |
| size_type | size () const noexcept |
| size of underlying queue More... | |
| void | push (const _Key &__x) |
| Attempts to push an element into the queue. More... | |
| void | pop () |
| Remove first element of queue. More... | |
A versioned mimic of a stl::queue, suitable for multithread.
| _Key | Type of key objects. |
| _Strategy | Custom strategy class for different merge behaviour |
Definition at line 26 of file vs_queue.h.
| typedef Versioned<std::queue<_Key>, _Strategy> vs::vs_queue< _Key, _Strategy >::_Versioned |
Definition at line 35 of file vs_queue.h.
| typedef std::queue<_Key>::size_type vs::vs_queue< _Key, _Strategy >::size_type |
Definition at line 36 of file vs_queue.h.
|
inlineexplicit |
Creates a vs_queue with no elements.
Definition at line 49 of file vs_queue.h.
|
inline |
Builds a vs_queue from an initializer_list.
| __l | An initializer_list. |
| __comp | Comparator to use. |
Copy elements of the list to created vs_queue. Non-standard, but handy to have instead of copying with queue{{initilizer}}
Definition at line 60 of file vs_queue.h.
|
inline |
vs_queue copy constructor
does not inherit versions history
Definition at line 77 of file vs_queue.h.
|
inline |
end reference
Returns a reference to recently pushed element
Definition at line 102 of file vs_queue.h.
|
inline |
begin constant reference
Returns a read-only (constant) reference that points to the first element in the vs_queue.
Definition at line 93 of file vs_queue.h.
|
inline |
Remove first element of queue.
Definition at line 129 of file vs_queue.h.
|
inline |
Attempts to push an element into the queue.
| __x | Element to be inserted. |
Definition at line 120 of file vs_queue.h.
|
inlinenoexcept |