|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-04-21 13:23:36
John Torjo <john.lists_at_[hidden]> writes:
>>time, you don't have to name the element type ;-)
>>
>>
>>
> 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.
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk