mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
chore(array): declare TSBaseArray<T>::Count() as const
This commit is contained in:
parent
1a9b17293c
commit
6a5f30e1a0
1 changed files with 3 additions and 2 deletions
|
|
@ -15,17 +15,18 @@ class TSBaseArray {
|
|||
virtual int32_t MemLineNo() const;
|
||||
|
||||
T& operator[](uint32_t i);
|
||||
uint32_t Count(void);
|
||||
uint32_t Count(void) const;
|
||||
void Clear(void);
|
||||
};
|
||||
|
||||
template <class T>
|
||||
T& TSBaseArray<T>::operator[](uint32_t i) {
|
||||
this->CheckArrayBounds(i);
|
||||
return this->m_data[i];
|
||||
}
|
||||
|
||||
template <class T>
|
||||
uint32_t TSBaseArray<T>::Count() {
|
||||
uint32_t TSBaseArray<T>::Count() const {
|
||||
return this->m_count;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue