<bdo id='dzIo2'></bdo><ul id='dzIo2'></ul>

<small id='dzIo2'></small><noframes id='dzIo2'>

<i id='dzIo2'><tr id='dzIo2'><dt id='dzIo2'><q id='dzIo2'><span id='dzIo2'><b id='dzIo2'><form id='dzIo2'><ins id='dzIo2'></ins><ul id='dzIo2'></ul><sub id='dzIo2'></sub></form><legend id='dzIo2'></legend><bdo id='dzIo2'><pre id='dzIo2'><center id='dzIo2'></center></pre></bdo></b><th id='dzIo2'></th></span></q></dt></tr></i><div id='dzIo2'><tfoot id='dzIo2'></tfoot><dl id='dzIo2'><fieldset id='dzIo2'></fieldset></dl></div>
      1. <legend id='dzIo2'><style id='dzIo2'><dir id='dzIo2'><q id='dzIo2'></q></dir></style></legend>
        <tfoot id='dzIo2'></tfoot>

        C++17 并行算法是否已经实现?

        Are C++17 Parallel Algorithms implemented already?(C++17 并行算法是否已经实现?)
        <legend id='i9asW'><style id='i9asW'><dir id='i9asW'><q id='i9asW'></q></dir></style></legend>

            <bdo id='i9asW'></bdo><ul id='i9asW'></ul>

                <tbody id='i9asW'></tbody>
              • <small id='i9asW'></small><noframes id='i9asW'>

              • <i id='i9asW'><tr id='i9asW'><dt id='i9asW'><q id='i9asW'><span id='i9asW'><b id='i9asW'><form id='i9asW'><ins id='i9asW'></ins><ul id='i9asW'></ul><sub id='i9asW'></sub></form><legend id='i9asW'></legend><bdo id='i9asW'><pre id='i9asW'><center id='i9asW'></center></pre></bdo></b><th id='i9asW'></th></span></q></dt></tr></i><div id='i9asW'><tfoot id='i9asW'></tfoot><dl id='i9asW'><fieldset id='i9asW'></fieldset></dl></div>

                • <tfoot id='i9asW'></tfoot>
                  本文介绍了C++17 并行算法是否已经实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我试图尝试使用 C++17 标准中提出的新并行库功能,但我无法让它工作.我尝试使用 g++ 8.1.1clang++-6.0-std=c++17 的最新版本进行编译,但似乎都不支持 #include std::execution::par 或任何类似的东西.

                  I was trying to play around with the new parallel library features proposed in the C++17 standard, but I couldn't get it to work. I tried compiling with the up-to-date versions of g++ 8.1.1 and clang++-6.0 and -std=c++17, but neither seemed to support #include <execution>, std::execution::par or anything similar.

                  在查看并行算法的 cppreference 时,有一长串算法,声称

                  When looking at the cppreference for parallel algorithms there is a long list of algorithms, claiming

                  技术规范提供了来自algorithmnumericmemory的以下69种算法的并行版本:( ... long list...)

                  Technical specification provides parallelized versions of the following 69 algorithms from algorithm, numeric and memory: ( ... long list ...)

                  听起来算法已经纸上",但还没有准备好使用?

                  which sounds like the algorithms are ready 'on paper', but not ready to use yet?

                  在这个SO问题中一年前,答案声称这些功能尚未实现.但到现在为止,我本来希望看到某种实现.有什么我们可以使用的吗?

                  In this SO question from over a year ago the answers claim these features hadn't been implemented yet. But by now I would have expected to see some kind of implementation. Is there anything we can use already?

                  推荐答案

                  可以参考https://en.cppreference.com/w/cpp/compiler_support 检查所有 C++ 功能实现状态.对于您的情况,只需搜索Standardization of Parallelism TS",您会发现现在只有 MSVCIntel C++ 编译器支持此功能.

                  You can refer https://en.cppreference.com/w/cpp/compiler_support to check all C++ feature implementation status. For your case, just search "Standardization of Parallelism TS", and you will find only MSVC and Intel C++ compilers support this feature now.

                  这篇关于C++17 并行算法是否已经实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Constructor initialization Vs assignment(构造函数初始化 Vs 赋值)
                  Is a `=default` move constructor equivalent to a member-wise move constructor?(`=default` 移动构造函数是否等同于成员移动构造函数?)
                  Has the new C++11 member initialization feature at declaration made initialization lists obsolete?(声明时新的 C++11 成员初始化功能是否使初始化列表过时了?)
                  Order of constructor call in virtual inheritance(虚继承中构造函数调用的顺序)
                  How to use sfinae for selecting constructors?(如何使用 sfinae 选择构造函数?)
                  Initializing a union with a non-trivial constructor(使用非平凡的构造函数初始化联合)
                • <tfoot id='D8WLh'></tfoot>
                    <bdo id='D8WLh'></bdo><ul id='D8WLh'></ul>
                    <legend id='D8WLh'><style id='D8WLh'><dir id='D8WLh'><q id='D8WLh'></q></dir></style></legend>
                  • <small id='D8WLh'></small><noframes id='D8WLh'>

                    <i id='D8WLh'><tr id='D8WLh'><dt id='D8WLh'><q id='D8WLh'><span id='D8WLh'><b id='D8WLh'><form id='D8WLh'><ins id='D8WLh'></ins><ul id='D8WLh'></ul><sub id='D8WLh'></sub></form><legend id='D8WLh'></legend><bdo id='D8WLh'><pre id='D8WLh'><center id='D8WLh'></center></pre></bdo></b><th id='D8WLh'></th></span></q></dt></tr></i><div id='D8WLh'><tfoot id='D8WLh'></tfoot><dl id='D8WLh'><fieldset id='D8WLh'></fieldset></dl></div>

                              <tbody id='D8WLh'></tbody>