MCPcopy Create free account
hub / github.com/Ekumen-OS/beluga / array_distance

Function array_distance

beluga/test/beluga/algorithm/test_distance_map.cpp:28–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace {
27
28auto array_distance(std::size_t first, std::size_t second) {
29 return std::abs(static_cast<intmax_t>(first) - static_cast<intmax_t>(second));
30}
31
32auto make_neighbors_function(std::size_t size) {
33 return [=](std::size_t index) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected