mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +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:
parent
2f16198bd6
commit
061bca99a9
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/trflynn89
Commit: 061bca99a9
Pull-request: https://github.com/SerenityOS/serenity/pull/16138
Reviewed-by: https://github.com/linusg ✅
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ class Function<Out(In...)> {
|
|||
AK_MAKE_NONCOPYABLE(Function);
|
||||
|
||||
public:
|
||||
using ReturnType = Out;
|
||||
|
||||
Function() = default;
|
||||
Function(std::nullptr_t)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue