From 213e3f09b11cd6fb67295ad758beffd490d62ed6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 18 Jan 2022 09:39:46 -0700 Subject: [PATCH] [vector] Add TODO Emplace? --- src/hb-vector.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-vector.hh b/src/hb-vector.hh index f5df8364f..c0b75539b 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -193,6 +193,7 @@ struct hb_vector_t template 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