libjmmcg  build_2783
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::mpl::fibonacci< N > Struct Template Reference

#include <fibonacci.hpp>

Public Types

typedef unsigned long long element_type
 

Static Public Attributes

static constexpr element_type n =N
 
static constexpr element_type value =fibonacci<N-1>::value+fibonacci<N-2>::value
 

Detailed Description

template<unsigned long long N>
struct jmmcg::mpl::fibonacci< N >

Definition at line 62 of file fibonacci.hpp.

Member Typedef Documentation

◆ element_type

template<unsigned long long N>
typedef unsigned long long jmmcg::mpl::fibonacci< N >::element_type

Definition at line 80 of file fibonacci.hpp.

Member Data Documentation

◆ n

template<unsigned long long N>
constexpr fibonacci< N >::element_type jmmcg::mpl::fibonacci< N >::n =N
staticconstexpr

Definition at line 81 of file fibonacci.hpp.

◆ value

template<unsigned long long N>
constexpr fibonacci< N >::element_type jmmcg::mpl::fibonacci< N >::value =fibonacci<N-1>::value+fibonacci<N-2>::value
staticconstexpr

Definition at line 82 of file fibonacci.hpp.


The documentation for this struct was generated from the following file: