LibNRG  0.0.1
Networking for Real-time Games library
 All Classes Files Functions Variables Friends
nrg_ringbuffer.h File Reference

Simple implementation of a ring / circular buffer. More...

#include "nrg_core.h"
#include <array>
#include <iterator>
#include <utility>

Go to the source code of this file.

Classes

class  nrg::RingBuffer< T, N >
 ring / circular buffer implementation More...
 
class  nrg::RingBuffer< T, N >::iterator
 Iterator class for the RingBuffer. More...
 

Detailed Description

Warning
This implementation only has the bare minimum functionality that is required internally.
Also it only holds N-1 elements which is kinda broken.