I am thinking of how to pass allocator object to STL C++ containers, for example as below
std::allocator<int> intAlloc; vector<int, intAlloc> v1; I do aware of we can do like below
vector<int, std::allocator<int> > v2; I am think of options of how to pass a same allocator object to all vector objects instead of passing allocator type.
std::vector<int, std::allocator<int> > v2(intAlloc);?