How to query a constexpr std::tuple at compile time?
std::get
is not marked constexpr
, so you cannot use it to retrieve the values from a tuple
in a constexpr
context, even if that tuple is itself constexpr
.
Unfortunately, the implementation of std::tuple
is opaque, so you cannot write your own accessors either.