CppExperiments/TraceAllocator/main.cpp
Andrea Bontempi 8a1f664443 Init
2021-10-21 15:00:01 +02:00

25 lines
507 B
C++

#include <iostream>
#include <sstream>
#include <chrono>
#include <memory>
#include "TraceAllocator.h"
int main(int argc, char **argv) {
auto a = std::unique_ptr<TraceAllocator>(new TraceAllocator);
auto b = new TraceAllocator;
for(auto i : pointer_list) {
std::cout << "Pointer: " << std::hex << i << std::endl;
}
delete b;
for(auto i : pointer_list) {
std::cout << "Pointer: " << std::hex << i << std::endl;
}
return 0;
}