summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-09-19 15:45:24 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-21 20:17:36 +0200
commitb5ca74e78a0cfb0d31cd45a10459448a714e7056 (patch)
tree1bc310849ec77f2fca29895650e0e6494864f4b9
parentd831b5738d932e723415fd0a37f01ea47b1c2dec (diff)
downloadserenity-b5ca74e78a0cfb0d31cd45a10459448a714e7056.zip
AK: Add template deduction guides for Array.
-rw-r--r--AK/Array.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/Array.h b/AK/Array.h
index 848101aabc..372d1f73f5 100644
--- a/AK/Array.h
+++ b/AK/Array.h
@@ -78,6 +78,9 @@ struct Array {
T __data[Size];
};
+template<typename T, typename... Types>
+Array(T, Types...) -> Array<T, sizeof...(Types) + 1>;
+
}
using AK::Array;