I need to find an element position in an std::vector to use it for referencing an element in another vector:
int find( const vector& whe
You could use std::numeric_limits for elements that was not found. It is a valid value, but it is impossible to create container with such max index. If std::vector has size equal to std::numeric_limits, then maximum allowed index will be (std::numeric_limits, since elements counted from 0.