Using emplace_back to avoid temporary
authorPraveen Kumar <cpp.fool@gmail.com>
Fri, 12 Jun 2015 21:44:00 +0000 (14:44 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 12 Jun 2015 21:54:35 +0000 (14:54 -0700)
commite9e3d9b685715f91ec9527e11723e85fcee2a85e
tree8a5b4702c204589d3748d52704d81a2f1b86295c
parent0efcd8c8283cdfc57d83594637dcb8b5fec09288
Using emplace_back to avoid temporary

Summary: Directly pass the arguments to respective constructors.
Instead of first making temporary and then pass that.

Closes #218

Reviewed By: @JoelMarcey

Differential Revision: D2151582

Pulled By: @sgolemon
folly/Padded.h
folly/io/async/test/AsyncSocketTest2.cpp
folly/io/async/test/EventBaseTest.cpp
folly/io/async/test/HHWheelTimerTest.cpp
folly/test/small_vector_test.cpp
folly/test/sorted_vector_test.cpp
folly/wangle/concurrent/PriorityLifoSemMPMCQueue.h