for_each、transform 与数据转换 | STL

本章覆盖:`for_each`;`transform`;unary transform;binary transform;side effect vs transformation;output iterator;in-place transform;pure transformation;lambda;readable pipeline;不用 for_each 强行代替所有 for loop。

本章知识点

  • for_each
  • transform
  • unary transform
  • binary transform
  • side effect vs transformation
  • output iterator
  • in-place transform
  • pure transformation
  • lambda
  • readable pipeline
  • 不用 for_each 强行代替所有 for loop