[C++11] Replace verbose functors with succinct lambdas

No functionality change.