Write a template for a function that has parameters for a list of items and
for a possible item on the list. If the item is on the list, then the function
returns the position of the first occurrence of that item. If the item is not on the list, the function returns − 1. The first position on the list is position 0, the next is position 1, and so forth. The type of the items on the list is a type parameter. Use the class template GenericList that you defined in Project 2. Write a suitable program to test this function template.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.