SyTen
restrict.h File Reference

restrict function to map an index into a range. More...

#include <cstdint>
+ Include dependency graph for restrict.h:
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  syten
 Syten namespace.
 

Functions

std::int64_t syten::restrict (std::int64_t value, std::int64_t max)
 Restricts value into the range [0,max), mapping -1 to max-1. More...
 

Detailed Description

restrict function to map an index into a range.