zz::math::Pow< B, E > Struct Template Reference

Template meta programming for pow(a, b) where a, b must be natural numbers Use Pow<a, b>::result = a^b, which is computed in compilation rather than runtime. More...

#include <zupply.hpp>

Static Public Attributes

static const unsigned long result = B * Pow<B, E - 1>::result
 

Detailed Description

template<unsigned long B, unsigned long E>
struct zz::math::Pow< B, E >

Template meta programming for pow(a, b) where a, b must be natural numbers Use Pow<a, b>::result = a^b, which is computed in compilation rather than runtime.


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