From 09dd11ddf800898c00ecb04a65fb5cd10fb481fa Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 8 May 2024 12:32:41 +0200 Subject: MHR-23: :boom: changes, reworked project tree. Signed-off-by: Amlal El Mahrouss --- Private/NewKit/ArrayList.hpp | 58 -------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 Private/NewKit/ArrayList.hpp (limited to 'Private/NewKit/ArrayList.hpp') diff --git a/Private/NewKit/ArrayList.hpp b/Private/NewKit/ArrayList.hpp deleted file mode 100644 index 31646472..00000000 --- a/Private/NewKit/ArrayList.hpp +++ /dev/null @@ -1,58 +0,0 @@ -/* ------------------------------------------- - - Copyright Mahrouss Logic - -------------------------------------------- */ - -#pragma once - -#include - -namespace NewOS -{ - template - class ArrayList final - { - public: - explicit ArrayList(T* list) - : fList(reinterpret_cast(list)) - { - } - - ~ArrayList() = default; - - ArrayList& operator=(const ArrayList&) = default; - ArrayList(const ArrayList&) = default; - - T* Data() - { - return fList; - } - - const T* CData() - { - return fList; - } - - T& operator[](int index) const - { - return fList[index]; - } - - operator bool() - { - return fList; - } - - private: - T* fList; - - friend class InitHelpers; - }; - - template - ArrayList make_list(ValueType val) - { - return ArrayList{val}; - } -} // namespace NewOS -- cgit v1.2.3