From fe58b444de6c00089010d308a39f78890b1782b6 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 11 Dec 2025 08:34:36 +0100 Subject: feat: kernel: `Vettable.h` interface and concepts. Signed-off-by: Amlal El Mahrouss --- src/kernel/NeKit/Function.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/kernel/NeKit/Function.h') diff --git a/src/kernel/NeKit/Function.h b/src/kernel/NeKit/Function.h index 2889e055..f7e47973 100644 --- a/src/kernel/NeKit/Function.h +++ b/src/kernel/NeKit/Function.h @@ -16,25 +16,21 @@ namespace Kernel { template class Function final { public: - Function() = delete; + Function() = delete; Function(nullPtr) = delete; - ~Function() = default; + ~Function() = default; explicit Function(T (*Fn)(Args... args)) : fFn(Fn) { MUST_PASS(fFn); } Function& operator=(const Function&) = delete; Function(const Function&) = delete; - T operator()(Args&&... args) { - return fFn(args...); - } + T operator()(Args&&... args) { return fFn(args...); } - T Call(Args&&... args) { - return fFn(args...); - } + T Call(Args&&... args) { return fFn(args...); } explicit operator bool() { return fFn; } - bool operator!() { return !fFn; } + bool operator!() { return !fFn; } private: T (*fFn)(Args... args){nullptr}; -- cgit v1.2.3