C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::detail::ring_buffer< T > Class Template Reference

A simple ring buffer implementation. More...

#include <ring_buffer.hpp>

Public Member Functions

 ring_buffer (size_t max_size)
 
 ring_buffer (ring_buffer &&other) noexcept=default
 
ring_bufferoperator= (ring_buffer &&other) noexcept=default
 
 ring_buffer (const ring_buffer &other)
 
ring_bufferoperator= (const ring_buffer &other)
 
T & front ()
 
void pop_front ()
 
void push_back (const T &x)
 
bool full () const noexcept
 
bool empty () const noexcept
 
size_t size () const noexcept
 

Friends

void swap (ring_buffer &first, ring_buffer &second) noexcept
 

Detailed Description

template<class T>
class caf::detail::ring_buffer< T >

A simple ring buffer implementation.


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