This was standardized in C++17, see the 2nd overload of std::for_each: https://en.cppreference.com/w/cpp/algorithm/for_each

On Thu, Aug 18, 2022 at 3:06 PM Phil Bouchard via Std-Proposals <std-proposals@lists.isocpp.org> wrote:

Greetings,

I wrote a tool to process ~ 500 galaxy rotation curves for my theory in astrophysics (Finite Theory) in Python and C++:

https://github.com/philippeb8/grc/blob/main/src/main.cpp

I'm not sure why Python is so popular given it's a trillion times slower than C++.

Anyway my point is parallel_for that I'm using is by far very essential to speed up these types of algorithms. I remember back at university we were using a language called Parallaxis for parallel processing. Functions like parallel_for can definitely fill in this gap.

So I was just wondering if there are any plans to parallelize C++?


Regards,

--
Logo
Phil Bouchard facebook icon
CTO
T: (819) 328-4743
E: phil@fornux.com | www.fornux.com
1188 rue Saint-Louis | Gatineau (Qc), J8T 2L8 Canada
Banner Le message ci-dessus, ainsi que les documents l'accompagnant, sont destinés uniquement aux personnes identifiées et peuvent contenir des informations privilégiées, confidentielles ou ne pouvant être divulguées. Si vous avez reçu ce message par erreur, veuillez le détruire.
This communication (and/or the attachments) is intended for named recipients only and may contain privileged or confidential information which is not to be disclosed. If you received this communication by mistake please destroy all copies.
--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals