In 2019, is there a platform-agnostic (Intel, AMD, Windows, *nix, etc.) way to simply parallelize a for loop, with minimal additional code to use all cores available. Here, it is assume the code within the for loop is written in a thread-safe manner. Let us also assume the latest and greatest language versions are supported.
Let's say this simple code is what I have:
std::vector<SomeObject> objects;
for (const auto& object: objects) {
// do some thread-safe work with object
// how to parallelize this?
}