正面和背面提案迭代器库 [英] front and back Proposal for iterators Library

查看:135
本文介绍了正面和背面提案迭代器库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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/discussion

In 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 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆