support IndexedMemPool for types without default constructor
authorNathan Bronson <ngbronson@fb.com>
Thu, 26 Feb 2015 22:54:59 +0000 (14:54 -0800)
committerAlecs King <int@fb.com>
Tue, 3 Mar 2015 03:30:33 +0000 (19:30 -0800)
commita0359850fd45080ff0862ca0a11884efb424d7d2
treee498f352059dc310ef6f3f8e87fc74782a1941c0
parent275ca94d04e44f28cfa411668eb1c1dd8db90b80
support IndexedMemPool for types without default constructor

Summary:
This diff gives IndexedMemPool<T> emplace-like semantics when T
is not trivial.

Test Plan:
1. new unit tests
2. LifoSem benchmark

Reviewed By: march@fb.com

Subscribers: folly-diffs@, yfeldblum

FB internal diff: D1874941

Signature: t1:1874941:1424987308:61bbe7b7e5e6df625a6208cd873c65e523a79fa0
folly/IndexedMemPool.h
folly/test/IndexedMemPoolTest.cpp