lets say I have a function
auto found = find(first, last, condition);
This find should be able to promise not to modify first to last.
So something like
auto find(const T* first, const T* last, Comp c = less<>);
results in a const T or const T* being returned.
so
int arr[] = {3, 4};
std::vector v(arr, arr +2);
int* found = find(v.begin(), v.end());
** error found is non-const.
I want to modify *found! What are my options? overloads?