提交 de0b9a46 编写于 作者: B Behdad Esfahbod

[vector] More of the same

上级 921f0e6e
......@@ -184,9 +184,9 @@ struct hb_vector_t
::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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册