| sajis997 (24) | |||
|
Hello forum, Does the template type take care of the pointer type ? for example if i have a template class as follows:
Will the above code also handle kdtree<int *> ? Thanks Sajjad | |||
|
|
|||
| vlad from moscow (3660) | |
|
Yes, it will. Consider for example standard template class std::vector. You can define std::vector<int> v; and std::vector<int *> pv; | |
|
Last edited on
|
|