(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
Post a Comment