DEV Community

Discussion on: Lambda Expressions in C++

Collapse
 
raghuram profile image
github_avenger • Edited
auto widgets = std::vector<Widget> { … }; // a bunch of widgets
for (auto& widget : widgets) {
  widgets.resize(); // Should this be widget.resize() ?? in both non-lambda and lambda ways
}
Enter fullscreen mode Exit fullscreen mode