模板表达式内的空格
空指针
C++定义了nullptr以取代0或者NULL。nullptr是std::nullptr_t类型的(constexpr)变量。std::nullptr_t可以显式或隐式地转换为任何指针(包括类的成员函数指针),但不能显式或隐式地转换为任何其他类型。
auto自动类型推导
Range Based for循环
类似于别的语言中的foreach循环
template <typename T> void PrintElement(const T& coll) //打印集合内所有元素 { for (const auto& elem : coll) { std::cout << elem << std::endl; } }