Skip to main content

Practice · 3 of 3

Dispatch on Type and Value

CHALLENGE
Difficulty: advanced+25 XP

Implement kindName<T>() returning "int", "double", "string", or "other" via traits; and pickN<K>(a, b) where K is a std::size_t NTTP returning the K-th argument (K beyond 1 wraps).

Back to lesson: Practice: Compile-Time Computing