Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dobiasd/FunctionalPlus
/ sign_with_zero
Function
sign_with_zero
include/fplus/numeric.hpp:195–198 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
193
// sign_with_zero(16) == 1
194
template <typename X>
195
int sign_with_zero(X x)
196
{
197
return x == 0 ? 0 : sign(x);
198
}
199
200
// API search type: integral_cast_throw : Int -> Int
201
// fwd bind count: 0
Callers
nothing calls this directly
Calls
1
sign
Function · 0.70
Tested by
no test coverage detected