baudvine::RingBuf
STL-like ring buffer in C++11
|
Public Member Functions | |
DequeRingBuf (const allocator_type &alloc) | |
DequeRingBuf (const DequeRingBuf &other, const allocator_type &allocator) | |
DequeRingBuf (DequeRingBuf &&other, const allocator_type &allocator) | |
allocator_type | get_allocator () const |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
reference | at (size_type index) |
const_reference | at (size_type index) const |
reference | operator[] (size_type index) |
const_reference | operator[] (size_type index) const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
const_reverse_iterator | crbegin () const |
const_reverse_iterator | crend () const |
bool | empty () const |
size_type | size () const |
constexpr size_type | max_size () const |
void | clear () noexcept(noexcept(data_.clear())) |
iterator | erase (const_iterator pos) noexcept(noexcept(data_.erase(pos))) |
iterator | erase (const_iterator first, const_iterator last) noexcept(noexcept(data_.erase(first, last))) |
void | push_front (const_reference value) |
void | push_front (value_type &&value) |
template<typename... Args> | |
reference | emplace_front (Args &&... args) |
void | push_back (const_reference value) |
void | push_back (value_type &&value) |
template<typename... Args> | |
reference | emplace_back (Args &&... args) |
void | pop_front () noexcept(noexcept(data_.pop_front())) |
void | pop_back () noexcept(noexcept(data_.pop_back())) |
void | swap (DequeRingBuf &other) noexcept(noexcept(data_.swap(other.data_))) |
Friends | |
bool | operator< (const DequeRingBuf &lhs, const DequeRingBuf &rhs) |
bool | operator> (const DequeRingBuf &lhs, const DequeRingBuf &rhs) |
bool | operator<= (const DequeRingBuf &lhs, const DequeRingBuf &rhs) |
bool | operator>= (const DequeRingBuf &lhs, const DequeRingBuf &rhs) |
bool | operator== (const DequeRingBuf &lhs, const DequeRingBuf &rhs) |
bool | operator!= (const DequeRingBuf &lhs, const DequeRingBuf &rhs) |
Definition at line 31 of file deque_ringbuf.h.