MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / abs_diff

Function abs_diff

include/fplus/numeric.hpp:153–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151// Returns the absolute difference of two values.
152template <typename X>
153X abs_diff(X a, X b)
154{
155 return a > b ? a - b : b - a;
156}
157
158// API search type: square : a -> a
159// fwd bind count: 0

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected