gpt4 book ai didi

c++ - 迭代器库的正面和背面提案

转载 作者:行者123 更新时间:2023-11-30 01:44:25 24 4
gpt4 key购买 nike

在 C++17 中 iterator library收到size , empty , 和 data允许静态构造的数组表现得像容器。

但我在迭代器库中没有看到 frontback 函数,它已添加到 C++14 中的其他容器:http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search=front&button=

这是有人提议的吗?

最佳答案

N4017最初提出front/back

图书馆进化工作组投票决定删除front/back:

Do we want non-member front(), back()?

SF F N A SA
0 6 5 3 1

[ Source ]

因此 N4107 被修改为 N4155并已被接受,没有 front/back

截至 02/18/16 front/back 尚未重新提议:https://groups.google.com/a/isocpp.org/d/topic/std-discussion/eJdDI2q1xKg/discussion

关于c++ - 迭代器库的正面和背面提案,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36265718/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com