Indestructible
authorYedidya Feldblum <yfeldblum@fb.com>
Fri, 19 Feb 2016 07:10:20 +0000 (23:10 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Fri, 19 Feb 2016 08:20:25 +0000 (00:20 -0800)
commit7bf1835488a101938eb7ec336a3cbeb05384952b
tree7867e2ed344a9d19bf6f5bb6c8ce2938345f23e0
parent4d4ca9ecafc9d4ce62b9ce84e6a6bb20607ded32
Indestructible

Summary:[Folly] `Indestructible`.

For when you need a Meyers singleton that will never be destructed, even at program exit.

Good for large data structures with many heap allocations, as long as they have no behavior. No point in ever destructing them.

HT: Proxygen, and Orvid.

Reviewed By: andriigrynenko

Differential Revision: D2947959

fb-gh-sync-id: 7dd1f725edf137ba81fbf4032a0819fd7c627261
shipit-source-id: 7dd1f725edf137ba81fbf4032a0819fd7c627261
folly/Indestructible.h [new file with mode: 0644]
folly/Makefile.am
folly/test/IndestructibleTest.cpp [new file with mode: 0644]
folly/test/Makefile.am