Default initialized (with value initialization) parameter pack
问题 Can I default initialize a parameter pack to the respective value initialization of each type ? To elaborate a bit more, take the example of a simple function template template<typename T> void f(T arg = T()) { // eg for T=int, arg is 0 (value initialization) when default initialized } Would it be possible to express its variadic counterpart, ie template<typename... Args> void F(Args... args /* how can I value initialize the parameter pack? */) { } 回答1: #include <iostream> #include <utility>