mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-06 16:09:30 +00:00
AK: Add template deduction guides for Array.
This commit is contained in:
parent
d831b5738d
commit
b5ca74e78a
|
@ -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…
Reference in a new issue