xieite::factorial<>

Defined in fragment xieite:factorial
(header-only: <xieite/math/factorial.hpp>)


A lookup table, generated at compile-time, containing all representable factorial values for some arithmetic type.


Declaration

template<xieite::is_arith T>
constexpr auto factorial = /* std::array<T, ???> */


Example

import std;
import xieite;

int main() {
	std::print("{}! = {}", 7, xieite::factorial.at(7));
}
Output:
7! = 5040