Revert "[vector] Simplify Sort" and "More of the same"
This reverts commitde0b9a4664
. This reverts commit921f0e6ec7
. Annnnd, revert. MSVC doesn't like it.
This commit is contained in:
parent
661340c475
commit
5eb7e7f646
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user