[vector] Add TODO Emplace?
This commit is contained in:
parent
f1dc8b087c
commit
213e3f09b1
|
@ -193,6 +193,7 @@ struct hb_vector_t
|
||||||
template <typename T>
|
template <typename T>
|
||||||
Type *push (T&& v)
|
Type *push (T&& v)
|
||||||
{
|
{
|
||||||
|
/* TODO Emplace? */
|
||||||
Type *p = push ();
|
Type *p = push ();
|
||||||
if (p == &Crap (Type))
|
if (p == &Crap (Type))
|
||||||
// If push failed to allocate then don't copy v, since this may cause
|
// If push failed to allocate then don't copy v, since this may cause
|
||||||
|
|
Loading…
Reference in New Issue