Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-04-22 10:03:20

John Torjo <john.lists_at_[hidden]> writes:

>>>of course ;) the element type is deduced from the container type.
>>>For instance, if you want a constant range, just do:
>>>crange<const container> r(cont);
>>>//... etc
>>But container is usually "spelt something<element_type>", so I'd pick
>>naming the element type over naming the container type any day.
> But it's technically not possible.

It works with Eric's FOR_EACH macro.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at