Add Singleton::apply and unit tests.
Summary: Adds a callback interface to facilitate adding elision support for folly::Singleton. Planned to add context-aware elision support which will use an adaptation method based on the interface's callsite information (ie, the type of the Singleton instance, T, and the type of the callback function, F). Reviewed By: nbronson Differential Revision: D15970597 fbshipit-source-id: 1010322c64d1b7900b4bef5b35059238efabb071
Showing
This diff is collapsed.
Please register or sign in to comment