Create inplace_swap