From a13e1c0911c0627184bc38f18c7fdda64447b3ad Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 23 Mar 2025 19:13:48 +0100 Subject: meta(kernel): Reworked repository's filesystem structure. Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss --- dev/Kernel/NewKit/Array.h | 65 ----------------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 dev/Kernel/NewKit/Array.h (limited to 'dev/Kernel/NewKit/Array.h') diff --git a/dev/Kernel/NewKit/Array.h b/dev/Kernel/NewKit/Array.h deleted file mode 100644 index 54c09636..00000000 --- a/dev/Kernel/NewKit/Array.h +++ /dev/null @@ -1,65 +0,0 @@ -/* ------------------------------------------- - - Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. - -------------------------------------------- */ - -#pragma once - -#include -#include -#include - -namespace NeOS -{ - template - class Array final - { - public: - explicit Array() = default; - ~Array() = default; - - Array& operator=(const Array&) = default; - Array(const Array&) = default; - - T& operator[](const SizeT& at) - { - MUST_PASS(at < this->Count()); - return fArray[at]; - } - - Boolean Empty() - { - return this->Count() > 0; - } - - const SizeT Capacity() - { - return N; - } - - const SizeT Count() - { - return N; - } - - const T* CData() - { - return fArray; - } - - operator bool() - { - return !Empty(); - } - - private: - T fArray[N]; - }; - - template - auto make_list(ValueType val) - { - return Array{val}; - } -} // namespace NeOS -- cgit v1.2.3