summaryrefslogtreecommitdiff
path: root/AK/Vector.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-07-22 19:06:16 +0430
committerAndreas Kling <kling@serenityos.org>2021-07-22 22:56:20 +0200
commit2891dca0cd3a6cf960458bc4df55a599d1846425 (patch)
tree8f1945d430042593836a0aade60217ac244649c8 /AK/Vector.h
parent6c9ef200105fc37b81cfd4a1b7871e61d2bc1c90 (diff)
downloadserenity-2891dca0cd3a6cf960458bc4df55a599d1846425.zip
AK: Add a deduction guide to Vector
Note that this does not generate a vector with inline capacity.
Diffstat (limited to 'AK/Vector.h')
-rw-r--r--AK/Vector.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/AK/Vector.h b/AK/Vector.h
index 2296bc5884..88d1348e84 100644
--- a/AK/Vector.h
+++ b/AK/Vector.h
@@ -782,6 +782,9 @@ private:
StorageType* m_outline_buffer { nullptr };
};
+template<class... Args>
+Vector(Args... args) -> Vector<CommonType<Args...>>;
+
}
using AK::Vector;