Reference documentation for deal.II version 8.1.0
Static Public Attributes | List of all members
Utilities::fixed_int_power< a, N > Struct Template Reference

#include <utilities.h>

Static Public Attributes

static const int value = a *fixed_int_power<a,N-1>::value
 

Detailed Description

template<int a, int N>
struct Utilities::fixed_int_power< a, N >

Calculate a fixed power of an integer number by a template expression where both the number a and the power N are compile-time constants. This computes the result of the power operation at compile time, enabling its use e.g. in other templates.

Use this class as in fixed_int_power<5,2>::value to compute 52.

Definition at line 233 of file utilities.h.


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