xte::fibonacci<>

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

A lookup table containing all representable values of the fibonacci sequence for some numeric type.


Definition

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


Example

std::println("F_19 = {}", xte::fibonacci<int>[19]);
Output:
F_19 = 4181
[View in Compiler Explorer]