My question is sure a simple one for anybody familiar with C++ syntax. I'm 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 the value from the center of the interval [begin, end].
The code I wrote there works, but auto is a keyword from the new C++11 language standard. How to do it the old-way? What do I write instead of auto?