Content deleted Content added
Add C++17 example for static table generation |
m Add offset variable in code example |
||
Line 240:
constexpr int TABLE_SIZE = 20;
constexpr int OFFSET = 12;
/**
* Template to calculate a single table entry
*/
template <typename VALUETYPE, VALUETYPE OFFSET, VALUETYPE
struct ValueHelper {
static constexpr VALUETYPE value = OFFSET +
};
Line 263 ⟶ 264:
};
constexpr std::array<uint16_t, TABLE_SIZE> table = Helper<uint16_t,
int main() {
|