Power Tools: auto, Lambdas & <algorithm>
10 min · C++
Skip repeating types with auto, write inline lambdas, and transform vectors with <algorithm>.
C++ · Power Tools: auto, Lambdas & <algorithm>0/5 cleared
Enemy 1 of 5
auto lets the compiler figure out a variable's type from its value. A range-based for loop (for (auto n : container)) walks every element without you managing an index.
You
Syntax Skeleton
Loading editor...
Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 1 2 3