I wondered if that would be possible, a custom for loop. The one I had in mind was the foreach expression from java, which is
for(Container c : Element e){
// do stuff with e
}
I wanted to write it for a custom container I wrote (lets call it cust_cont), which I wanted to work with a foreach loop (like the one from boost). But before reading into iterators and such, I wanted to ask wether I can just implement the loop I want, if need explicitly.