MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / factorialFloat

Function factorialFloat

tests/ConstexprFunctionHandlerTest.cpp:6–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4}
5
6constexpr float factorialFloat(int n)
7{
8 return n <= 1? 1.0f : (n * factorialFloat(n - 1));
9}
10
11
12int dummy(int n)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected