阅读背景:

STL算法:为什么没有容器的附加接口(除了迭代器对)?

来源:互联网 

I'm wondering why the STL doesn't overload their algorithm functions such that I can call them by simply providing a container and not taking the more verbose way to pass begin + end iterators. I of course understand why we also want to use an iterator pair for processing subsequences of a container / array, however, almost all calls to these methods are using a whole container:I'm wondering why the STL doesn't overload thei




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: