blob: eb1ba51b53daa7461e72d01b416815dd6178c2dd [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <fbl/alloc_checker.h>
#include <memory>
namespace ktl {
using std::unique_ptr;
template <typename T, typename... Args>
unique_ptr<T> make_unique(fbl::AllocChecker* ac, Args&&... args) {
return unique_ptr<T>(new (ac) T(std::forward<Args>(args)...));
}
} // namespace ktl