Chromium now builds in C++14 mode, so I would like to propose that we allow generic lambdas, which use auto (and template type deduction rules) in their argument types. This makes use of lambdas (especially for <algorithm>) more convenient, in the same way that we allow use of auto in range-based for loops. e.g.
before:
std::vector<std::unique_ptr<ExampleWidget>> widgets;
bool widgets_enabled =
std::all_of(widgets.begin(),
widgets.end(),
[](const std::unique_ptr<ExampleWidget>& widget) {
return widget->enabled();
});
after:
std::vector<std::unique_ptr<ExampleWidget>> widgets;
bool widgets_enabled =
std::all_of(widgets.begin(), widgets.end(), [](const auto& widget) {
return widget->enabled();
});