StlAllocator.h + MakeUnique.h -> Memory.h
authorLouis Brandy <ldbrandy@fb.com>
Wed, 20 Mar 2013 21:54:45 +0000 (14:54 -0700)
committerOwen Yamauchi <oyamauchi@fb.com>
Wed, 27 Mar 2013 21:40:03 +0000 (14:40 -0700)
commit244a89966aa1bead86e9c2fb1263bbe8d837be28
tree127d9bffb590005e131a71287df3ddac92d80902
parentae4fa388c3a2fac5f1908f0696e22b05b76359cc
StlAllocator.h + MakeUnique.h -> Memory.h

Summary:
Go with the fat header approach. Merge these two into Memory.h. We could, potentially, include Malloc.h as well, but it fbstring header uses the once define for some special magic. Leave it alone for now.

An alternate approach might be moving all three leaner headers into a `memory/` subdir with `folly/Memory.h` just #including the three.

Test Plan:
fbconfig folly/tests && fbmake runtests_opt

Reviewed By: delong.j@fb.com

FB internal diff: D745873
folly/Memory.h [new file with mode: 0644]
folly/test/ArenaSmartPtrTest.cpp
folly/test/ArenaTest.cpp
folly/test/ThreadCachedArenaTest.cpp