emplace() support for AtomicHashArray/Map
authorJustin Gibbs <gibbs@fb.com>
Thu, 24 Sep 2015 16:44:07 +0000 (09:44 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Thu, 24 Sep 2015 17:20:43 +0000 (10:20 -0700)
commit800a6af06f7ad195a8e63d484b2f5cd7c19655fd
treedf9fa34c6760a1b85f4867c161c4f2ce022a73c3
parent9013b5e00d1caae4bb91f56d369eae8a543f430c
emplace() support for AtomicHashArray/Map

Summary: Allow objects that only support in-place construction (no copy/move
constructor) to be stored in AtomicHashMap and AtomicHashArray via the
emplace() method. This uses variadic template parameters and perfect
forwarding to allow the arguments for any valid constructor for the
object to be used during insertion.

Reviewed By: @nbronson

Differential Revision: D2458152
folly/AtomicHashArray-inl.h
folly/AtomicHashArray.h
folly/AtomicHashMap-inl.h
folly/AtomicHashMap.h
folly/test/AtomicHashArrayTest.cpp
folly/test/AtomicHashMapTest.cpp