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
}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: Lambda Expressions in C++
For further actions, you may consider blocking this person and/or reporting abuse