| 316 | // the next increment will start at min. |
| 317 | template <typename Integer> |
| 318 | Integer cycleIncrement(Integer val, Integer min, Integer max) { |
| 319 | if (val < min || val >= max) |
| 320 | return min; |
| 321 | else |
| 322 | return val + 1; |
| 323 | } |
| 324 | |
| 325 | } |
no outgoing calls