construct a constexpr table using a class
with ctor that takes an index argument