Bind a function against a range to make an iterating function?

As far as I'm aware, this doesn't exist in Boost, because it's easily reproduced with for_each and bind for example.

I don't see what the problem is. You said this could be achieved by a for_each construct in calling code. Yes, true.

Then why not put that for_each construct INTO the bind_range functor itself? I mean, bind_range is going to be a struct template with operator(). In this operator you must do a for_each.

Am I missing something?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions