#include template class X { public: X() = default; X(const X& x) = default; template X(T&& x) : mX{} { } private: U mX; }; int main() { X arr[2]{}; // We use X instead of X here. This results // in a constructor call to create a X object as // you can see in the transformation. for(const X& x : arr) { } }