2026.08.15lambda 闭包原理在写代码时经常要给 std::sort 传比较器。有次我需要按"与某个阈值距离的远近"排序:2,907 字 · 6 分钟 · C++ / C++11 / lambdaC++ 新特性