xieite::fib<>

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


A lookup table, generated at compile-time, containing all representable values of the fibonacci sequence for some arithmetic type.


Declaration

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


Example

import std;
import xieite;

int main() {
	std::print("F{} = {}", 19, xieite::fib.at(19));
}
Output:
F19 = 4181