[llvm-dev] When to use auto instead of iterator/const_iterator?
陳韋任 via llvm-dev
llvm-dev at lists.llvm.org
Wed May 3 06:24:30 PDT 2017
>
> You may even wish to write this as:
>
> NumberDeps = llvm::count_if(SU->Succs, [](const SDep &S) { return
> S.isCtrl(); });
>
I feel that would be a little aggressive, so .. :)
--
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170503/3dfe1b55/attachment-0001.html>
More information about the llvm-dev
mailing list