restrict
function to map an index into a range.
More...
#include <cstdint>
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... | |
restrict
function to map an index into a range.