Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LadybugDB/ladybug
/ operation
Method
operation
src/include/function/arithmetic/abs.h:14–20 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
12
struct Abs {
13
template<class T>
14
static inline void operation(T& input, T& result) {
15
if constexpr (common::UnsignedIntegerTypes<T>) {
16
result = input;
17
} else {
18
result = std::abs(input);
19
}
20
}
21
};
22
23
template<>
Callers
nothing calls this directly
Calls
1
abs
Function · 0.85
Tested by
no test coverage detected