From 061bca99a9f124d0f0747726b0b0120283e66156 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Mon, 21 Nov 2022 09:49:24 -0500 Subject: [PATCH] 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. --- AK/Function.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AK/Function.h b/AK/Function.h index 4753c25e35..b0262e42ae 100644 --- a/AK/Function.h +++ b/AK/Function.h @@ -51,6 +51,8 @@ class Function { AK_MAKE_NONCOPYABLE(Function); public: + using ReturnType = Out; + Function() = default; Function(std::nullptr_t) {