projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
folly: small_vector: emplace_back for iterator constructor (compat with std::vector)
[folly.git]
/
folly
/
small_vector.h
diff --git
a/folly/small_vector.h
b/folly/small_vector.h
index ca62f1471ad22fb2d27d551f4da4d9fc19e569ad..df237553e3f6c1e9d1cc8ecc815c6032b1f1bee2 100644
(file)
--- a/
folly/small_vector.h
+++ b/
folly/small_vector.h
@@
-883,7
+883,7
@@
private:
// With iterators that only allow a single pass, we can't really
// do anything sane here.
while (first != last) {
-
push
_back(*first++);
+
emplace
_back(*first++);
}
return;
}