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