blob: a59a595813cfc8c14572875a59f5d9876ad93344 [file] [log] [blame]
// Copyright 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 QUICHE_COMMON_PLATFORM_API_QUICHE_PTR_UTIL_H_
#define QUICHE_COMMON_PLATFORM_API_QUICHE_PTR_UTIL_H_
#include <memory>
#include "absl/memory/memory.h"
#include "net/quiche/common/platform/impl/quiche_ptr_util_impl.h"
namespace quiche {
template <typename T>
std::unique_ptr<T> QuicheWrapUnique(T* ptr) {
// TODO(b/166325009): replace this in code with absl::WrapUnique and delete
// this function.
return absl::WrapUnique<T>(ptr);
}
} // namespace quiche
#endif // QUICHE_COMMON_PLATFORM_API_QUICHE_PTR_UTIL_H_