Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ NextModN
Function
NextModN
libs/base/math.hpp:132–136 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
130
131
template <typename T>
132
T NextModN(T x, T n)
133
{
134
ASSERT_GREATER(n, 0, ());
135
return x + 1 == n ? 0 : x + 1;
136
}
137
138
template <typename T>
139
T PrevModN(T x, T n)
Callers
3
CommonEdge
Function · 0.85
GetNeighbors
Method · 0.85
FindSingleStripForIndex
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected