【发布时间】:2010-10-08 06:39:50
【问题描述】:
std::sort(range(c));
相对
std::sort(c.begin(), c.end();
您希望下一个标准为标准算法提供范围重载吗?
Boost 的range iterators 是类似的东西,TC++PL3e 中提到的Bjarne Stroustrup 的iseq()s 也是同样的想法。我查看了the latest draft I could find,但没有看到提到范围重载。
【问题讨论】:
-
编辑:我发现了这个:www-sop.inria.fr/geometrica/events/WG21_meeting_june_2008/Stroustrup_C++0x_overview.ppt(或 s/ppt$/pdf/)。这是 Stroustrup 于 2008 年 6 月在 WG21 会议上发表的演讲。在幻灯片 30 中,他提到了这些重载,但不清楚它们是否计划用于标准。