MCPcopy 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
131template <typename T>
132T NextModN(T x, T n)
133{
134 ASSERT_GREATER(n, 0, ());
135 return x + 1 == n ? 0 : x + 1;
136}
137
138template <typename T>
139T PrevModN(T x, T n)

Callers 3

CommonEdgeFunction · 0.85
GetNeighborsMethod · 0.85
FindSingleStripForIndexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected