add new examples

This commit is contained in:
chatlanin
2023-08-14 11:02:39 +03:00
parent 0339df9279
commit 1242044571
25 changed files with 442 additions and 446 deletions

16
bin/memory/main.cpp Normal file
View File

@@ -0,0 +1,16 @@
#include <array>
#include "hack/logger/logger.hpp"
#include "hack/memory/make_ptr.hpp"
auto main(int argc, char *argv[]) -> int
{
auto a = hack::memory::make_unique<int>(5);
hack::log()(*a);
auto arr = hack::memory::make_unique<int[]>(5);
arr[0] = 1;
hack::log()(arr[0]);
}