diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-05 09:34:00 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-11-05 09:34:00 +0100 |
| commit | b636137088923d092c3f0fa4221907fd43c34923 (patch) | |
| tree | 2d21e43349204866d17091cfb395cd2dd1b28a90 /dev/ZKAKit/NewKit/Array.h | |
| parent | 4e7ea02ed492a1fc0b167392361673244f957cce (diff) | |
IMP: Scheduler improvements, fixing stack issue of kernel now.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKAKit/NewKit/Array.h')
| -rw-r--r-- | dev/ZKAKit/NewKit/Array.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/dev/ZKAKit/NewKit/Array.h b/dev/ZKAKit/NewKit/Array.h index 28060857..994645c5 100644 --- a/dev/ZKAKit/NewKit/Array.h +++ b/dev/ZKAKit/NewKit/Array.h @@ -24,12 +24,19 @@ namespace Kernel T& operator[](const SizeT& At) { + MUST_PASS(At < N); return fArray[At]; } - Boolean Empty() const + T& Assign(const SizeT& At, T& NewVal) { - return No; + fArray[At] = NewVal; + return fArray[At]; + } + + Boolean Empty() + { + return this->Count() > 0; } const SizeT Capacity() |
