正面和背面提案迭代器库 [英] front and back Proposal for iterators Library
问题描述
在C ++ 17 收到的迭代器库=HTTP://en.cp$p$pference.com/w/cpp/iterator/size相对=nofollow> 尺寸
,< A HREF =HTTP://en.cp$p$pference.com/w/cpp/iterator/empty相对=nofollow> 空
和 数据
允许静态构造函数阵列表现得像个容器。
不过,我没有看到一个前
或回
的迭代器库,它被添加到函数在C ++ 14的其他容器:<一href=\"http://en.cp$p$pference.com/mwiki/index.php?title=Special%3ASearch&search=front&button=\" rel=\"nofollow\">http://en.cp$p$pference.com/mwiki/index.php?title=Special%3ASearch&search=front&button=
这是不是已经提出?
的 N4017 的最初建议前
/ 回
。
图书馆演进工作组投票删除前
/ 回
:
难道我们希望非成员前(),后()?
块引用>SF F N阿SA
0 6 5 3 1[来源]
结果N4107修改为 N4155 并已被接受的sans
前
/回
。由于16年2月18日
前
/回
尚未reproposed:的https://groups.google.com/a/isocpp.org/d/topic/std-discussion/eJdDI2q1xKg/discussionIn C++17 the iterator library received
size
,empty
, anddata
allowing statically constructed arrays to behave like containers.But I don't see a
front
orback
function in the iterator library, which was added to the other containers in C++14: http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search=front&button=Is this something that has been proposed?
解决方案N4017 originally proposed
front
/back
.The Library Evolution Working Group voted to remove
front
/back
:Do we want non-member front(), back()?
SF F N A SA 0 6 5 3 1
[Source]
As a result N4107 was revised to N4155 and has been accepted sans
front
/back
.As of 02/18/16
front
/back
have not been reproposed: https://groups.google.com/a/isocpp.org/d/topic/std-discussion/eJdDI2q1xKg/discussion这篇关于正面和背面提案迭代器库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!