mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-17 20:32:45 +01:00
17 lines
357 B
C
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
|