1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

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
parent 2f16198bd6
commit 061bca99a9

View file

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