Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/9chu/LuaSTGPlus
/ Pop
Method
Pop
LuaSTGPlus/CirularQueue.hpp:36–47 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
34
}
35
}
36
bool Pop(T& out)
37
{
38
if (IsEmpty())
39
return false;
40
else
41
{
42
out = m_Data[m_Front];
43
m_Front = (m_Front + 1) % MaxSize;
44
--m_Count;
45
return true;
46
}
47
}
48
T& Front()
49
{
50
LASSERT(!IsEmpty());
Callers
1
Update
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected