MCPcopy 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
194template <typename X>
195int 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

signFunction · 0.70

Tested by

no test coverage detected