parent
6532a435d2
commit
5b57c12b0d
|
|
@ -61,15 +61,8 @@ public:
|
|||
}
|
||||
|
||||
/// @returns number of elements in the buffer
|
||||
/// @@TODO better solution if it exists
|
||||
inline index_t count() const {
|
||||
index_t i = tail;
|
||||
index_t c = 0;
|
||||
while (i != head) {
|
||||
i = next(i);
|
||||
++c;
|
||||
}
|
||||
return c;
|
||||
return head - tail;
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
|
|||
Loading…
Reference in New Issue