So JohnW: your Funtion() would be used like
right? But it would work for different sequential containers with different value_types.Code:std::vector<int> ivec; std::vector<int>::value_type result = Function(ivec)
ok thank you both.
I am seeing it like through a mist now![]()
Will get there.
OK one last question. Is there a difference between:
std::vector<int>::value_type search_value;
and
int search_value; ?




Reply With Quote