Skip to content

Function factorial

function factorial(int) demo

constexpr int factorial(int n) noexcept { … }

Returns the factorial of a number.

Parameters
n Input number
Returns
int
1 For n <= 1.

Since

1.0.0

Fully qualified name: ns::factorial(int)

Declared at library.hpp:327

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.