From 2403df50bb42af37eda8695b2cc06a7a42da73ad Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 2 Feb 2023 23:19:18 +0200 Subject: [PATCH] BAN: Add getter for Function size --- BAN/include/BAN/Function.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BAN/include/BAN/Function.h b/BAN/include/BAN/Function.h index 861821d8..33e4a361 100644 --- a/BAN/include/BAN/Function.h +++ b/BAN/include/BAN/Function.h @@ -64,6 +64,8 @@ namespace BAN memset(m_storage, 0, m_size); } + static constexpr size_t size() { return m_size; } + private: struct CallableBase {