Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
152
template <typename X>
153
X 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
udemy_course_test.cpp
File · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected