#include <iostream>
int main() {
RealHeap externalHeap;
WrappedHeap heap(&externalHeap);
std::vector<int, WrappedHeap> v(heap);
for (int i = 0; i < 5; i++) {
v.push_back(i);
}
std::cout << "Use of a std::vector with a third-party allocator wrapped by "
"galois::runtime::ExternalHeapAllocator.\n";
for (auto& j : v) {
std::cout << j << std::endl;
}
return 0;
}