hazptr: Replace friend "swap" with a member function and a non-friend
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Tue, 4 Oct 2016 17:24:45 +0000 (10:24 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Tue, 4 Oct 2016 17:38:34 +0000 (10:38 -0700)
commit4d012b253803f49ce475d26590878c057291fb43
treeba3881cf7ea5b8b4824bc6b00b05e2abf8cfb312
parente7256a8a282c258dee2e62055ac227761df5e22d
hazptr: Replace friend "swap" with a member function and a non-friend

Summary:
This matches what the STL does with e.g. std::vector::swap() and std::shared_ptr::swap().

http://en.cppreference.com/w/cpp/container/vector/swap
http://en.cppreference.com/w/cpp/memory/shared_ptr/swap

Should be relatively uncontroversial, I would think.
Closes https://github.com/facebook/folly/pull/489

Reviewed By: magedm

Differential Revision: D3963285

Pulled By: yfeldblum

fbshipit-source-id: 3fa6bf77e66fa9a673cb648b0bf87b1db3caa6c8
folly/experimental/hazptr/hazptr-impl.h
folly/experimental/hazptr/hazptr.h