1
0
forked from fsfw/fsfw

getter function for capacity

This commit is contained in:
2020-07-06 23:08:31 +02:00
parent 8f6c3b50af
commit 2fccc4fef7
3 changed files with 10 additions and 5 deletions

View File

@ -45,9 +45,11 @@ public:
bool full();
size_t size();
size_t getMaxCapacity() const;
private:
T* values;
size_t maxCapacity;
size_t maxCapacity = 0;
size_t readIndex = 0;
size_t writeIndex = 0;