mirror of
https://github.com/Andreabont/CppExperiments.git
synced 2024-09-19 15:23:05 +00:00
25 lines
507 B
C++
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;
|
||
|
}
|