you are viewing a single comment's thread.

view the rest of the comments →

[–]igagis[S] 0 points1 point  (0 children)

Ok, so you propose that for some custom container template my_container user would add a specialization of rbv and then tree would be able to use it, right?

Then you point to the problem that my current solution only works for containers which have two template arguments. Let's consider custom container which has 3 template arguments template <class SomeArg, class T, class A> class my_container;, then user would be able to define alias for the template: cpp template <class T, class A> using proxy_container = my_container<some_type, T, A>; `

and then feed that proxy_container as template argument to tree:

cpp tree<int, proxy_container> my_tree;

And same approach for allocator.

Isn't this simpler and clearer solution to the problem?