easier rebinding of allocators
authorMarcelo Juchem <marcelo@fb.com>
Mon, 8 Apr 2013 20:38:22 +0000 (13:38 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 21 Apr 2013 20:21:10 +0000 (13:21 -0700)
commit2624a682280830b932a741c5386b58b4771b4f5e
treeffd07fc1dbd78c6b1df477a2cd17f14dc416fade
parent36b366265da55fc26201870d1c5c2477ccc12600
easier rebinding of allocators

Summary: rebinding allocators is too cumbersome, this diff implements a helper to make this job easier.

Test Plan: unit test added

Reviewed By: tudorb@fb.com

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