Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2004-12-09 12:24:08


David Abrahams wrote:
> Eric Niebler wrote:
>
>>
>>Rationale:
>>Given some iterator of type T that is built of an unknown number of
>>adaptors, extract the underlying iterator. Consider:
>>
>> template<class Iter>
>> typename disable_if<is_adapted<Iter>,Iter>::type
>> base(Iter const & it)
>> {
>> return it;
>> }
>>
>> template<class D,class B,class V,class T,class R,class Di>
>> ??????????
>> base(iterator_adaptor<D,B,V,T,R,Di> const & it)
>> {
>> return base(it.base());
>> }
>>
>>I can't think of a way to write the return type of the second overload.

I am not fully awake yet, but isn't that just B ?

Thomas

-- 
Thomas Witt
witt_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk