提交 5eb7e7f6 编写于 作者: B Behdad Esfahbod

Revert "[vector] Simplify Sort" and "More of the same"

This reverts commit de0b9a46.
This reverts commit 921f0e6e.

Annnnd, revert.  MSVC doesn't like it.
上级 661340c4
......@@ -179,14 +179,19 @@ struct hb_vector_t
return nullptr;
}
inline void qsort (int (*cmp)(const void*, const void*) = Type::cmp)
inline void qsort (int (*cmp)(const void*, const void*))
{
::qsort (arrayZ(), len, sizeof (Type), cmp);
}
inline void qsort (unsigned int start, unsigned int end, int (*cmp)(const void*, const void*) = Type::cmp)
inline void qsort (void)
{
::qsort (arrayZ() + start, end - start, sizeof (Type), cmp);
::qsort (arrayZ(), len, sizeof (Type), Type::cmp);
}
inline void qsort (unsigned int start, unsigned int end)
{
::qsort (arrayZ() + start, end - start, sizeof (Type), Type::cmp);
}
template <typename T>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册