diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-07-22 19:06:16 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-22 22:56:20 +0200 |
commit | 2891dca0cd3a6cf960458bc4df55a599d1846425 (patch) | |
tree | 8f1945d430042593836a0aade60217ac244649c8 /AK/Vector.h | |
parent | 6c9ef200105fc37b81cfd4a1b7871e61d2bc1c90 (diff) | |
download | serenity-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.h | 3 |
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; |