Reference documentation for deal.II version Git a0b41b6d0f 2020-02-26 20:08:13 -0600
\(\newcommand{\vcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\vcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
List of all members
Utilities::fixed_int_power< a, N > Struct Template Reference

#include <deal.II/base/utilities.h>

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.

This template has been deprecated in favor of C++11's support for constexpr calculations, e.g., use
constexpr int value = Utilities::pow(2, dim);

instead of

to obtain a constant expression for value.

Definition at line 463 of file utilities.h.

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