mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
27 lines
708 B
C++
27 lines
708 B
C++
// Copyright (c) 2017 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
#ifndef NET_QUIC_PLATFORM_API_QUIC_PTR_UTIL_H_
|
|
#define NET_QUIC_PLATFORM_API_QUIC_PTR_UTIL_H_
|
|
|
|
#include <memory>
|
|
#include <utility>
|
|
|
|
#include "net/quic/platform/impl/quic_ptr_util_impl.h"
|
|
|
|
namespace net {
|
|
|
|
template <typename T, typename... Args>
|
|
std::unique_ptr<T> QuicMakeUnique(Args&&... args) {
|
|
return QuicMakeUniqueImpl<T>(std::forward<Args>(args)...);
|
|
}
|
|
|
|
template <typename T>
|
|
std::unique_ptr<T> QuicWrapUnique(T* ptr) {
|
|
return QuicWrapUniqueImpl<T>(ptr);
|
|
}
|
|
|
|
} // namespace net
|
|
|
|
#endif // NET_QUIC_PLATFORM_API_QUIC_PTR_UTIL_H_
|