(c++)binary tree that has more than one template parameters, how come -


like binarysearchtree< classa , classb>, why need have 2 parameter classes? think binary tree can contain 1 class

it might (for 1 obvious example) take allocator type parameter (e.g., standard library containers this). decouples code deals objects in container code container proper.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -