mirror of
https://github.com/xfarrow/lasd.git
synced 2025-02-17 04:30:41 +01:00
Library 2
This commit is contained in:
parent
67c0f1c0d5
commit
69489dac81
@ -140,7 +140,7 @@ bool QueueVec<Data>::Empty() const noexcept{
|
|||||||
|
|
||||||
template <typename Data>
|
template <typename Data>
|
||||||
ulong QueueVec<Data>::Size() const noexcept{
|
ulong QueueVec<Data>::Size() const noexcept{
|
||||||
if(size == 0) return 0; // this won't ever get executed, it's here just in case
|
//if(size == 0) return 0; // this won't ever get executed, it's here just in case
|
||||||
return ((rear + size) - front) % size;
|
return ((rear + size) - front) % size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user