OpenWalnut 1.2.5
Public Types

WPower< base, exponent > Struct Template Reference

Compute the nth power of a value. More...

#include <WCompileTimeFunctions.h>

List of all members.

Public Types

enum  { value = base * WPower< base, value = base * WPower< base }
 

Using an enum here instead of a static constant.

More...

Detailed Description

template<std::size_t base, std::size_t exponent>
struct WPower< base, exponent >

Compute the nth power of a value.

For base == exponent == 0, compilation fails.

Definition at line 105 of file WCompileTimeFunctions.h.


Member Enumeration Documentation

template<std::size_t base, std::size_t exponent>
anonymous enum

Using an enum here instead of a static constant.

Enumerator:
value 

The computed value.

value 

The computed value.

Definition at line 110 of file WCompileTimeFunctions.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends