[vector] Simplify shift_down_vector()
Compiler is smarter than I am.
This commit is contained in:
parent
1dd9396c7a
commit
69b41f92ec
|
@ -300,17 +300,6 @@ struct hb_vector_t
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T = Type,
|
|
||||||
hb_enable_if (hb_is_trivially_copy_assignable(T))>
|
|
||||||
void
|
|
||||||
shift_down_vector (unsigned i)
|
|
||||||
{
|
|
||||||
memmove (static_cast<void *> (&arrayZ[i - 1]),
|
|
||||||
static_cast<void *> (&arrayZ[i]),
|
|
||||||
(length - i) * sizeof (Type));
|
|
||||||
}
|
|
||||||
template <typename T = Type,
|
|
||||||
hb_enable_if (!hb_is_trivially_copy_assignable(T))>
|
|
||||||
void
|
void
|
||||||
shift_down_vector (unsigned i)
|
shift_down_vector (unsigned i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue