This is an example of how to use fallback_allocator.
#include <iostream>
using vector_t =
{
auto pvec =
manager.construct<vector_t>(
"vec")(
manager.get_allocator());
pvec->push_back(1);
std::cout << (*pvec)[0] << std::endl;
}
{
vector_t vec;
vec.push_back(2);
std::cout << vec[0] << std::endl;
}
return 0;
}
int main()
Definition: jgraph.cpp:24