mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Add template deduction guides for Array.
This commit is contained in:
parent
d831b5738d
commit
b5ca74e78a
Notes:
sideshowbarker
2024-07-19 02:17:34 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/b5ca74e78a0 Pull-request: https://github.com/SerenityOS/serenity/pull/3536
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ struct Array {
|
||||||
T __data[Size];
|
T __data[Size];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename T, typename... Types>
|
||||||
|
Array(T, Types...) -> Array<T, sizeof...(Types) + 1>;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
using AK::Array;
|
using AK::Array;
|
||||||
|
|
Loading…
Reference in a new issue