Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

status of for, each, in

William_Clements
Beginner
469 Views

Hi, what is the status of"for each, in" ? Is it supported?

for each (const Edge* pFindEdge in m_edges)
{
if (pEdge == pFindEdge)
return true;
}
0 Kudos
4 Replies
Brandon_H_Intel
Employee
469 Views

Hi William, welcome to the forum!

No, this is not working/supported currently. We have an open feature request on this that I have linked your thread to so that I can track the status of that. If there's any updates on the status of that feature request, I will let you know.

0 Kudos
Brandon_H_Intel
Employee
469 Views

Let me clarify one point, based on the code snippet you gave.

The Intel C++ Compiler does not support /clr or the managed runtimes, so "for each" syntax in that context would require an entirely different feature request. The report I referenced is in regards to "for each" syntax being applied to C++ STL containers in native compilations.

0 Kudos
William_Clements
Beginner
469 Views
Agreed. I was asking about "for each" in native; i.e., STL. The source set I am working with uses "for each" a great deal.
0 Kudos
Brandon_H_Intel
Employee
469 Views

Hi William,

The Intel(R) C++ Compiler supports for,each,in syntax now with version 15.0 (available in Intel(R) Parallel Studio XE 2015, all editions). Let me know if you need anything else.

0 Kudos
Reply