別のstd::shared_ptrをカスタムデリータ付きで構築してswapすれば