用到的cpp-持续更新

  1. C++标准保证把 std::vector 的元素排列跟数组一样,因此可以这样用: &*my_array.begin() 取到相应的数组.
  2. auto it = std::max_element(v.begin(), v.end()) 取到最大元素的iterator
  3. std::move() 将变量变为右值引用,使之应用右值构造或右值移动
原文地址:https://www.cnblogs.com/suntus/p/14909472.html