QUICHE team | fd50a40 | 2018-12-07 22:54:05 -0500 | [diff] [blame] | 1 | // Copyright 2018 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_HTTP2_PLATFORM_API_HTTP2_PTR_UTIL_H_ |
| 6 | #define QUICHE_HTTP2_PLATFORM_API_HTTP2_PTR_UTIL_H_ |
| 7 | |
| 8 | #include <memory> |
| 9 | #include <utility> |
| 10 | |
| 11 | #include "net/http2/platform/impl/http2_ptr_util_impl.h" |
| 12 | |
| 13 | namespace http2 { |
| 14 | |
| 15 | template <typename T, typename... Args> |
| 16 | std::unique_ptr<T> Http2MakeUnique(Args&&... args) { |
| 17 | return Http2MakeUniqueImpl<T>(std::forward<Args>(args)...); |
| 18 | } |
| 19 | |
| 20 | } // namespace http2 |
| 21 | |
| 22 | #endif // QUICHE_HTTP2_PLATFORM_API_HTTP2_PTR_UTIL_H_ |