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

[arrays] Remove one flavor of hb_vector_t.qsort()

上级 7c1600dc
......@@ -225,13 +225,9 @@ struct hb_vector_t
::qsort (arrayZ(), len, sizeof (Type), cmp);
}
inline void qsort (void)
{
::qsort (arrayZ(), len, sizeof (Type), Type::cmp);
}
inline void qsort (unsigned int start, unsigned int end)
inline void qsort (unsigned int start = 0, unsigned int end = (unsigned int) -1)
{
end = MIN (end, len);
::qsort (arrayZ() + start, end - start, sizeof (Type), Type::cmp);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册