diff --git a/stl/inc/memory b/stl/inc/memory index 0d4b97666f..adb086137b 100644 --- a/stl/inc/memory +++ b/stl/inc/memory @@ -2057,6 +2057,11 @@ _NODISCARD unique_ptr<_Ty> make_unique(size_t _Size) { // make a unique_ptr template != 0, int> = 0> void make_unique(_Types&&...) = delete; +template ::value, int> = 0> +void swap(unique_ptr<_Ty, _Dx>& _Left, unique_ptr<_Ty, _Dx>& _Right) noexcept { + _Left.swap(_Right); +} + template _NODISCARD bool operator==(const unique_ptr<_Ty1, _Dx1>& _Left, const unique_ptr<_Ty2, _Dx2>& _Right) { return _Left.get() == _Right.get();