
From: Pavol Droba <droba@topmail.sk>
On Fri, May 07, 2004 at 09:59:44AM +0200, John Torjo wrote:
How about a range_traits class:
template<class C> struct range_traits { typedef typename iterator_of<C>::type iterator; typedef typename const_iterator_of<C>::type iterator; ...etc };
It seems to me it provides a more unified of finding metadata about a range (and it's a traits class ;)) Has this been suggested already?
There was a long discussion about this issue some time ago. Monolitic class is not an acceptable solution, due to several reasons.
Why not have both? All it takes is a new header that defines this new traits class. -- Rob Stewart stewart@sig.com Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;