T
thinktwice
i wanna sort the elements stored in a vector, but my sort function
needs be a little different from the standard one, i wanna the sort
function accept 3 parameters.
stl::sort(myvec.begin(), myvec.end(), mysortfunc);
bool mysortfunc(elem1, elem2, anoter parameter)
{
//is it possible ??
}
needs be a little different from the standard one, i wanna the sort
function accept 3 parameters.
stl::sort(myvec.begin(), myvec.end(), mysortfunc);
bool mysortfunc(elem1, elem2, anoter parameter)
{
//is it possible ??
}