This commit is contained in:
chatlanin
2025-01-03 10:25:22 +03:00
parent 6b1e1f9d0e
commit 55917da5ee
50 changed files with 246 additions and 1680 deletions

10
bin/main.cpp Normal file
View File

@@ -0,0 +1,10 @@
#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;
}

7
bin/meson.build Executable file
View File

@@ -0,0 +1,7 @@
executable(
meson.project_name(),
'main.cpp',
dependencies : deps,
cpp_args: args,
include_directories : inc
)