[vector] Simplify sort
Hopefully this fits fine with SFINAE with all our compilers.
This commit is contained in:
parent
61510b63c1
commit
921f0e6ec7
@ -179,16 +179,11 @@ struct hb_vector_t
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
inline void qsort (int (*cmp)(const void*, const void*))
|
||||
inline void qsort (int (*cmp)(const void*, const void*) = Type::cmp)
|
||||
{
|
||||
::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)
|
||||
{
|
||||
::qsort (arrayZ() + start, end - start, sizeof (Type), Type::cmp);
|
||||
|
Loading…
Reference in New Issue
Block a user