You can actually pass std::allocator to a template:
template <class X> foo {};
template <template<class> class F> struct bar { F<int> f; };
bar<foo> b;
This is painful to do with a lot of the STL like vector, because they have a lot of default template arguments and there's no implicit currying.I haven't investigated it but variadic template template arguments might help there, though.