(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

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

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -