Hi everyone, my question is sure a simple one for anybody familiar with C++ syntax. I'm just learning c++ and this is some sort of homework.
template<typename Iter>
void quickSort(Iter begin, Iter end)
{
//..
auto pivot = * ( begin + (end - begin)/2 );
//..
}
pivot is supposed to contain value from the center of [begin, end] interval. Ite
The code i wrote there works, but auto
is a keyword from the new standart of language. How to do it the old-way? What to write instead of auto
?
Thanks, Ilya.