Transfer ownership from a unique_ptr to a ThreadLocalPtr
Summary: This `ThreadLocalPtr::reset` overload will accept a `unique_ptr`. It's actually not totally exception safe, simply because `ElementWrapper::set` is not exception safe. The best I can say is that my additional code is exactly as safe as the underlying implemenation. liketolivedangerously Reviewed By: ericniebler Differential Revision: D3271563 fbshipit-source-id: 774bcf31924b1ed4e29a6cb1c0a36ad710ab6034
Showing
Please register or sign in to comment