blob: 98f940a46de5186efbda65c6bec3a2b33ae1690f [file] [log] [blame]
// 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_THIRD_PARTY_QUIC_PLATFORM_IMPL_QUIC_PTR_UTIL_IMPL_H_
#define NET_THIRD_PARTY_QUIC_PLATFORM_IMPL_QUIC_PTR_UTIL_IMPL_H_
#include "base/memory/ptr_util.h"
namespace quic {
template <typename T, typename... Args>
std::unique_ptr<T> QuicMakeUniqueImpl(Args&&... args) {
return std::make_unique<T>(std::forward<Args>(args)...);
}
template <typename T>
std::unique_ptr<T> QuicWrapUniqueImpl(T* ptr) {
return base::WrapUnique<T>(ptr);
}
} // namespace quic
#endif // NET_THIRD_PARTY_QUIC_PLATFORM_IMPL_QUIC_PTR_UTIL_IMPL_H_