Add formatting, printing, new stl stuff, unfuck vec, change clangd styling

This commit is contained in:
2025-05-18 18:51:05 +03:00
parent a45b7cbb21
commit 3b1b2bfb06
15 changed files with 284 additions and 54 deletions

BIN
test/test

Binary file not shown.

View File

@@ -1,13 +1,11 @@
#include <collections/vec.hpp>
#include <stddef.h>
#include <stdio.h>
#include <std.hpp>
int main(int argc, char* argv[]) {
Vec<size_t>* v = new Vec<size_t>();
v->push(69);
v->push(420);
size_t ft = v->pop().unwrap();
size_t sn = v->pop().unwrap();
printf("ft: %zu sn: %zu\n", ft, sn);
Vec<int> v = Vec<int>();
v.push(1);
v.push(2);
v.push(3);
v.push(4);
println("Hello!!!! {}, {}, {}, {}", "meow", 420.0, 49, v);
return 0;
}