11 lines
258 B
C++
11 lines
258 B
C++
|
#include <iostream>
|
||
|
|
||
|
#include "hack/patterns/ring_buffer.hpp"
|
||
|
|
||
|
auto main(int argc, char *argv[]) -> int
|
||
|
{
|
||
|
hack::patterns::ring_buffer<int, 10> rb;
|
||
|
for (int i = 1; i < 12; ++i) rb.put(i);
|
||
|
while(!rb.empty()) std::cout << rb.get().value() << std::endl;
|
||
|
}
|