mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
AK: Add template deduction guides for Array.
This commit is contained in:
parent
d831b5738d
commit
b5ca74e78a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue