But where is that located?
That's up to the implementation but the file you found is a good bet.
But it seems that they only show the declarations and not the whole
definition.
When I look at the definition that comes with VC8 I see that it's not
just one function but rather a couple of them (some seem to be
overloaded for specific types or something, I didn't bother to investigate.
I don't see why you want the definition though, you can probably
implement a quite good one yourself, something like this:
template<typename Iter, typename Val>
Iter find(Iter first, Iter last, Val v)
{
for (; first != last; ++first)
{
if (*first == v)
return first;
}
return first;
}
Note that I have not tested this but it really is no more to it since
find() runs in linear time.