blob: 32b8515f4cad0282c1f759e2f3516db87fa3e10c [file] [log] [blame]
QUICHE team82dee2f2019-01-18 12:35:12 -05001// 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
13namespace spdy {
14
15template <typename T, typename... Args>
16std::unique_ptr<T> SpdyMakeUnique(Args&&... args) {
17 return SpdyMakeUniqueImpl<T>(std::forward<Args>(args)...);
18}
19
20template <typename T>
21std::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_