本文介绍了正面和背面提案迭代器库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 在C ++ 17 收到的迭代器库=HTTP://en.cp$p$pference.com/w/cpp/iterator/size相对=nofollow> 尺寸 , 空 和 数据 允许静态构造函数阵列表现得像个容器。不过,我没有看到一个前或回的迭代器库,它被添加到函数在C ++ 14的其他容器:http://en.cp$p$pference.com/mwiki/index.php?title=Special%3ASearch&search=front&button=这是不是已经提出?解决方案 的 N4017 的最初建议前 / 回。图书馆演进工作组投票删除前 / 回:  难道我们希望非成员前(),后()? SF F N阿SA0 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, and data allowing statically constructed arrays to behave like containers.But I don't see a front or back 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 SA0 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 这篇关于正面和背面提案迭代器库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-15 04:30