check invariant during swap
Summary: Container swap is not allowed to fall back to allocation + move when allocators are not equal, which makes swap undefined in that case. FOLLY_SAFE_CHECK it. For zero-size allocators this check will be optimized away at compile time. Reviewed By: yfeldblum Differential Revision: D8209358 fbshipit-source-id: 6555f102c51c97f1e1ecfebd0597c532849184b5
Showing
Please register or sign in to comment