AK: Define a convenience alias for a Function's return type

This is nice when the return type is long and needs to be specified as
a lambda's return type many times to resolve ambiguity.
This commit is contained in:
Timothy Flynn 2022-11-21 09:49:24 -05:00 committed by Linus Groh
commit 061bca99a9
Notes: sideshowbarker 2024-07-18 22:57:59 +09:00

View file

@ -51,6 +51,8 @@ class Function<Out(In...)> {
AK_MAKE_NONCOPYABLE(Function);
public:
using ReturnType = Out;
Function() = default;
Function(std::nullptr_t)
{