Skip to content

Conversation

frederick-vs-ja
Copy link
Contributor

目前示例中的并行 sum 算法要求能多次遍历同一个序列,这要求迭代器有多趟保证。

另外 C++11 中迭代器的值类型最好用 std::iterator_traits<I>::value_type 确定。而且 C++11 版本中可能不应允许用户手动指定另一个返回类型。

C++11 中迭代器的值类型应使用 `std::iterator_traits<I>::value_type` 确定。
@Mq-b Mq-b added the enhancement 内容改进与增强 label Apr 30, 2024
Copy link
Owner

@Mq-b Mq-b left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢😍😍

@Mq-b Mq-b merged commit 02ccd60 into Mq-b:main Apr 30, 2024
@frederick-vs-ja frederick-vs-ja deleted the parallel-forward-iterator branch April 30, 2024 08:56
@Mq-b Mq-b added the merge 已合并 label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 内容改进与增强 merge 已合并
2 participants