[vector] More of the same
This commit is contained in:
parent
921f0e6ec7
commit
de0b9a4664
|
@ -184,9 +184,9 @@ struct hb_vector_t
|
||||||
::qsort (arrayZ(), len, sizeof (Type), cmp);
|
::qsort (arrayZ(), len, sizeof (Type), cmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void qsort (unsigned int start, unsigned int end)
|
inline void qsort (unsigned int start, unsigned int end, int (*cmp)(const void*, const void*) = Type::cmp)
|
||||||
{
|
{
|
||||||
::qsort (arrayZ() + start, end - start, sizeof (Type), Type::cmp);
|
::qsort (arrayZ() + start, end - start, sizeof (Type), cmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
Loading…
Reference in New Issue