且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C ++ WRT字符串中的STL排序功能

更新时间:2023-11-15 17:23:28

使用lambda捕获this:

Use a lambda to capture this:

sort(s.begin(),s.end(),[this](auto a, auto b) -> bool { return helper(a,b); });