xte::factorial<>

Defined in header <xte/math/factorial.hpp>

A lookup table containing all representable factorial values for some numeric type.


Definition

template<xte::is_number T>
constexpr auto factorial = std::define_static_array(/* ??? */);


Example

std::println("7! = {}", xte::factorial<int>[7]);
Output:
7! = 5040
[View in Compiler Explorer]