/* * Copyright 2012 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ // This entire file is deprecated, and will be removed in XXXX 2016. Use // std::unique_ptr instead! #ifndef WEBRTC_BASE_SCOPED_PTR_H__ #define WEBRTC_BASE_SCOPED_PTR_H__ // All these #includes are left to maximize backwards compatibility. #include #include #include #include #include #include #include "webrtc/base/constructormagic.h" #include "webrtc/base/template_util.h" #include "webrtc/typedefs.h" namespace rtc { template > using scoped_ptr = std::unique_ptr; // These used to convert between std::unique_ptr and std::unique_ptr. Now they // are no-ops. template std::unique_ptr ScopedToUnique(std::unique_ptr up) { return up; } template std::unique_ptr UniqueToScoped(std::unique_ptr up) { return up; } } // namespace rtc #endif // #ifndef WEBRTC_BASE_SCOPED_PTR_H__