31#if defined(ConstExpressions_RECURSES)
32#error Recursive header files inclusion detected in ConstExpressions.h
35#define ConstExpressions_RECURSES
37#if !defined ConstExpressions_h
39#define ConstExpressions_h
44#include "DGtal/base/Common.h"
59 template<
typename T >
61 return e == 0 ? T(1) : b *
const_pow( b, e - 1 );
74 template<
typename T >
90#undef ConstExpressions_RECURSES
constexpr T const_pow(T b, unsigned int e)
constexpr T const_middle(T K, unsigned int e)
DGtal is the top-level namespace which contains all DGtal functions and types.