且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将OpenMP与C ++ 11基于范围的for循环一起使用?

更新时间:2022-05-01 23:00:23

OpenMP 5.0在第99页上添加了以下行,这使很多基于范围的for循环行!

OpenMP 5.0 adds the following line on page 99, which makes a lot of range-based for loops OK !

2.12.1.3具有随机访问迭代器的基于范围的for循环具有规范的循环形式.

2.12.1.3 A range-based for loop with random access iterator has a canonical loop form.

来源: https://www.openmp. org/wp-content/uploads/OpenMP-API-Specification-5.0.pdf