[vector] Add TODO Emplace?

This commit is contained in:
Behdad Esfahbod 2022-01-18 09:39:46 -07:00
parent f1dc8b087c
commit 213e3f09b1
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ struct hb_vector_t
template <typename T>
Type *push (T&& v)
{
/* TODO Emplace? */
Type *p = push ();
if (p == &Crap (Type))
// If push failed to allocate then don't copy v, since this may cause