summaryrefslogtreecommitdiffstats
path: root/src/common/make_unique_for_overwrite.h
diff options
context:
space:
mode:
authorLevi Behunin <l3ehunin@gmail.com>2023-01-29 21:54:13 +0100
committerBehunin <l3ehunin@gmail.com>2023-01-30 01:49:42 +0100
commitd5fc56db4bdebcf4f45e39e9c9d0f40229de8cea (patch)
tree4bbcaee76bde35ddc6eff9a1c639866cf278b353 /src/common/make_unique_for_overwrite.h
parentMerge pull request #9699 from ameerj/texture-pass-desc (diff)
downloadyuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.gz
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.bz2
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.lz
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.xz
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.tar.zst
yuzu-d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea.zip
Diffstat (limited to 'src/common/make_unique_for_overwrite.h')
-rw-r--r--src/common/make_unique_for_overwrite.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/make_unique_for_overwrite.h b/src/common/make_unique_for_overwrite.h
index c7413cf51..17f81bba4 100644
--- a/src/common/make_unique_for_overwrite.h
+++ b/src/common/make_unique_for_overwrite.h
@@ -9,17 +9,19 @@
namespace Common {
template <class T>
-requires(!std::is_array_v<T>) std::unique_ptr<T> make_unique_for_overwrite() {
+ requires(!std::is_array_v<T>)
+std::unique_ptr<T> make_unique_for_overwrite() {
return std::unique_ptr<T>(new T);
}
template <class T>
-requires std::is_unbounded_array_v<T> std::unique_ptr<T> make_unique_for_overwrite(std::size_t n) {
+ requires std::is_unbounded_array_v<T>
+std::unique_ptr<T> make_unique_for_overwrite(std::size_t n) {
return std::unique_ptr<T>(new std::remove_extent_t<T>[n]);
}
template <class T, class... Args>
-requires std::is_bounded_array_v<T>
+ requires std::is_bounded_array_v<T>
void make_unique_for_overwrite(Args&&...) = delete;
} // namespace Common