i.e. I've got this:
typedef std::vector<Sector> Sectors; typedef std::vector<Sectors> SectorsArray;
And I'd like to be able to do something like this:
for_each( m_SectorsArray.begin() , m_SectorsArray.end() , for_each( /* ? */ , /* ? */ , std::mem_fun_ref( &IRenderable::Render ) ) );
In order:
1.- What's the proper way of doing this using for_each? Is it even possible?
2.- Am I crazy for wanting to do this? Is there a better way of doing it?
I loathe to use iterators, as theres's a *lot* of code that goes into setting up the for loop over the for_each, but I want to try them both and figure it out either way.
Any help would be appreciated. ;)












