Using emplace_back to avoid temporary
authorPraveen Kumar <cpp.fool@gmail.com>
Tue, 16 Jun 2015 17:02:00 +0000 (10:02 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 17 Jun 2015 17:26:16 +0000 (10:26 -0700)
commit16b7f86299f935fc16d38d72a8b497e2ab4a1d4f
treef0d784e3ea286047be1f95a74a49dbb5ac019852
parent9f37625427c5804d202311919e25dbd7f82091cc
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: @yfeldblum

Differential Revision: D2156978

Pulled By: @sgolemon
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