|
| ~RingDeque () |
| Destructs the container. The destructors of the elements are called and the used storage is deallocated.
|
|
| RingDeque (const allocator_type &allocator=allocator_type()) |
| Constructs an empty container with the given 'allocator'.
|
|
| RingDeque (RingDeque const &other) |
| Copy constructor. Constructs the container with the copy of the contents of 'other'.
|
|
| RingDeque (RingDeque &&other) |
| Move constructor. Constructs the container with the contents of other using move semantics. After the move, other is invalid.
|
|
RingDeque & | operator= (RingDeque const &other) |
| Copy assignment operator. Replaces the contents with a copy of the contents of 'other'.
|
|
RingDeque & | operator= (RingDeque &&other) |
| Move assignment operator. Replaces the contents with those of other using move semantics. After the move, other is invalid.
|
|
bool | empty () const |
| Checks if the contains has no elements. More...
|
|
size_type | size () const |
| Gets the number of elements in the container. More...
|
|
size_type | capacity () const |
| Gets the number of elements that can be held in the currently allocated storage. More...
|
|
value_type const & | front () const |
| Gets the first element. More...
|
|
value_type & | front () |
| Gets the first element. More...
|
|
value_type const & | back () const |
| Gets the last element. More...
|
|
value_type & | back () |
| Gets the last element. More...
|
|
value_type const & | operator[] (size_type pos) const |
| Gets the element at pos. More...
|
|
value_type & | operator[] (size_type pos) |
| Gets the element at pos. More...
|
|
allocator_type | get_allocator () const |
| Get this RingDeque's allocator. More...
|
|
void | push_back (value_type const &val) |
|
void | push_back (value_type &&val) |
|
void | push_front (value_type const &val) |
|
void | push_front (value_type &&val) |
|
template<typename... TArgs> |
void | emplace_back (TArgs &&... args) |
|
template<typename... TArgs> |
void | emplace_front (TArgs &&... args) |
|
void | pop_back () |
|
void | pop_front () |
|
void | reserve (size_type sizePow2) |
|
void | clear () |
|
template<typename T, typename TAllocator = AlignedAllocator<GTS_NO_SHARING_CACHE_LINE_SIZE>>
class gts::RingDeque< T, TAllocator >
A re-sizable ring buffer ADT.
- Template Parameters
-
T | The element type stored in the container. |
TAllocator | The allocator used by the storage backing. |