This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2014-12-20 05:21:23 +00:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-06-21 14:44:11 +00:00
|
|
|
#include <algorithm>
|
2014-12-20 05:21:23 +00:00
|
|
|
#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
|