diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-12 09:31:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-12 09:31:36 +0100 |
| commit | 52f882514384c6be00752be0dca9bd511db9d450 (patch) | |
| tree | 17898d84b8f597304dc7b16076f51e4880a170d1 /dev/Boot/BootKit/Shared/base.h | |
| parent | 3ab08798d0f6f71ea00f8ea2485a8abe06f3893a (diff) | |
ADD: Qr Code algortihm from a vendor library which I forgot about from
the R&D.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Boot/BootKit/Shared/base.h')
| -rw-r--r-- | dev/Boot/BootKit/Shared/base.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dev/Boot/BootKit/Shared/base.h b/dev/Boot/BootKit/Shared/base.h new file mode 100644 index 00000000..1270b36a --- /dev/null +++ b/dev/Boot/BootKit/Shared/base.h @@ -0,0 +1,26 @@ +#ifndef UTL_BASE_H +#define UTL_BASE_H + +#include <cstdint> +#include <cstddef> +#include <cmath> + +namespace utl +{ + + /** + * @brief Helper to get number of elements in array. + * + * @tparam T Auto-deduced element type + * @tparam N Auto-deduced number of elements + * @return Array size + */ + template <class T, size_t N> + constexpr size_t countof(T (&)[N]) + { + return N; + } + +} // namespace utl + +#endif
\ No newline at end of file |
