azureeyemodule/app/util/circular_buffer.hpp
explicit CircularBuffer(size_t size, T item)
        : buffer(size), read_index(0), write_index(0), max_size(size), full(false)
    {
        this->put(item);
    }
/** Constructs a circular buffer with a default starting element. */
Constructs a circular buffer with a default starting element.
Constructs a circular buffer with a default starting element .
explicit CircularBuffer(size_t size, T item)
        : buffer(size), read_index(0), write_index(0), max_size(size), full(false)
    {
        this->put(item);
    }
explicit CircularBuffer ( size_t size , T item ) : buffer ( size ) , read_index ( 0 ) , write_index ( 0 ) , max_size ( size ) , full ( false ) { this -> put ( item ) ; }
Constructs a circular buffer with a default starting element.
Constructs a circular buffer with a default starting element .