|
Calculator
Step 6
|
Go to the source code of this file.
Functions | |
| template<class T > | |
| T constexpr | power10_helper (T n, T result) |
Called from power10 to compute 10n, storing the result so far in result. More... | |
| template<class T > | |
| T constexpr | power10 (T n) |
| Compute a power of 10 at compile time. The type T must support subtraction and multiplication. More... | |
| T constexpr power10 | ( | T | n | ) |
Compute a power of 10 at compile time. The type T must support subtraction and multiplication.
Definition at line 14 of file power10.hpp.
References power10_helper().
| T constexpr power10_helper | ( | T | n, |
| T | result | ||
| ) |
Called from power10 to compute 10n, storing the result so far in result.
Definition at line 7 of file power10.hpp.
Referenced by power10().
1.8.5