Auxiliary class to hide data type specific methods.
More...
#include <JMath.hh>
|
template<class T > |
static T | pow (const T &x, const double y, const JLANG::JBool< true > option) |
| Power .
|
|
template<class T > |
static T | pow (const T &x, const double y, const JLANG::JBool< false > option) |
| Power .
|
|
|
template<class T > |
T | JMATH::pow (const T &, const double y) |
| Friend declaration of global method.
|
|
Auxiliary class to hide data type specific methods.
Definition at line 47 of file JMath.hh.
◆ pow() [1/2]
Power
.
This method corresponds to primitive data types.
- Parameters
-
- Returns
- result
Definition at line 65 of file JMath.hh.
66 {
67 return std::pow(x, y);
68 }
◆ pow() [2/2]
Power
.
This method corresponds to non-primitive data types.
- Parameters
-
x | value |
y | power |
option | false |
- Returns
- result
Definition at line 82 of file JMath.hh.
83 {
84 return T(x).pow(y);
85 }
◆ JMATH::pow
Friend declaration of global method.
The documentation for this struct was generated from the following file: