零初始化
template<typename T>void f(){ T t = T();//如果T是内建类型,x是0或者false}template<typename T>class A{ T t;public: A():t(){//确认t已被初始化,内建类型对象也是如此 }};