提到 STL 算法,大家都知道很牛B。
但是想一想,除了 sort() , 你还会用啥呢?😂
最近抽时间把 STL 所有算法测试一遍,做到心里有个印象。
本文的这些示例基本上都来自于 cppreference.com 和 cplusplus.com
其实就是挨个看一遍,然后复制粘贴一下。
STL algorithms — everyone knows they are awesome.
But think about it: apart from sort(), what else do you actually use? 😂
I recently took some time to test all STL algorithms one by one, so I have a rough idea of what each one does.
The examples in this article basically come from cppreference.com and cplusplus.com
In fact, I just went through them one by one and copy-pasted.


