QUICHE team | 82dee2f | 2019-01-18 12:35:12 -0500 | [diff] [blame^] | 1 | // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_SPDY_PLATFORM_API_SPDY_PTR_UTIL_H_ |
| 6 | #define QUICHE_SPDY_PLATFORM_API_SPDY_PTR_UTIL_H_ |
| 7 | |
| 8 | #include <memory> |
| 9 | #include <utility> |
| 10 | |
| 11 | #include "net/spdy/platform/impl/spdy_ptr_util_impl.h" |
| 12 | |
| 13 | namespace spdy { |
| 14 | |
| 15 | template <typename T, typename... Args> |
| 16 | std::unique_ptr<T> SpdyMakeUnique(Args&&... args) { |
| 17 | return SpdyMakeUniqueImpl<T>(std::forward<Args>(args)...); |
| 18 | } |
| 19 | |
| 20 | template <typename T> |
| 21 | std::unique_ptr<T> SpdyWrapUnique(T* ptr) { |
| 22 | return SpdyWrapUniqueImpl<T>(ptr); |
| 23 | } |
| 24 | |
| 25 | } // namespace spdy |
| 26 | |
| 27 | #endif // QUICHE_SPDY_PLATFORM_API_SPDY_PTR_UTIL_H_ |