0
0
mirror of https://notabug.org/litucks/torzu.git synced 2025-05-07 08:55:31 +00:00
torzu/src/common/make_unique.h
2014-12-20 03:45:02 -02:00

17 lines
357 B
C++

// Copyright 2014 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
namespace Common {
template <typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args) {
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
} // namespace