cpp-project-template 0.0.1.0
C++ Project Template
Loading...
Searching...
No Matches
tut1 Namespace Reference

The namespace for this tutorial. More...

Functions

constexpr std::integral auto factorial (std::integral auto n)
 Calculate the factorial of a given integral number.

Detailed Description

The namespace for this tutorial.

Function Documentation

◆ factorial()

std::integral auto tut1::factorial ( std::integral auto n)
constexpr

Calculate the factorial of a given integral number.

Parameters
[in]nThe number to calculate the factorial of.
Returns
The calculated factorial.