KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Given this C++11 example code: for ( const auto &foo : bar() ) { // ... do something with foo... } Is it guaranteed by the standard that the expression bar() in this example is evaluated only once? Or could it end up being called at every iteration of the loop?
Tags (comma-separated)
Save Edits
Cancel