hack/bin/main.cpp

11 lines
258 B
C++
Raw Normal View History

2025-01-03 10:25:22 +03:00
#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;
}