Making StlAllocator<Alloc, void> usable when rebinding.
authorMarcelo Juchem <marcelo@fb.com>
Mon, 8 Apr 2013 21:08:18 +0000 (14:08 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 21 Apr 2013 20:21:09 +0000 (13:21 -0700)
commit36b366265da55fc26201870d1c5c2477ccc12600
tree7bd10b9fc2697b85bb74b2ce8352016249ea5907
parent8a4545eda1686b36347fde1b7d55320684cbba8a
Making StlAllocator<Alloc, void> usable when rebinding.

Summary:
currently, StlAllocator<Alloc, void> can't be used when you
want an untyped allocator that can be rebound later since it doesn't
carry the SimpleAllocator pointer with it. This diff fixes that.

Test Plan: unit test added

Reviewed By: jon.coens@fb.com

FB internal diff: D766559
folly/Memory.h
folly/test/MemoryTest.cpp