Practice ยท 3 of 3
Dispatch on Type and Value
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).
Difficulty: advanced
Press Submit to check your solution.
Back to lesson: Practice: Compile-Time Computing