why no sort(v) in C++?

前端 未结 6 1115
感动是毒
感动是毒 2021-01-17 15:15

I always wondered why there is no

sort(v);// same as std::sort(v.begin(),v.end())

If I recall correctly long time ago I saw a boostcon cli

6条回答
  •  孤城傲影
    2021-01-17 15:31

    There is nothing about this that requires concepts. Ranges are not any more complex than iterators really.

提交回复
热议问题