Boost logo

Boost :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2006-08-05 09:09:27


On Aug 5, 2006, at 4:40 AM, Davide Bolcioni wrote:
>> Unimpressed? Here's an implementation of tuple that accepts any
>> number of element types:
>>
>> template<typename... Values>
>> class tuple;
>>
>> template<> class tuple<> { };
>>
>> template<typename Head, typename... Tail>
>> class tuple<Head, Tail...>
>> : private tuple<Tail...>
>> {
>>
>> protected:
>> Head m_head;
>> };
>
> The fact that head() and tail() are not declareda bove is just an
> omission, is it ?

Yes, the (now accessible) PDFs have the complete code.

        Doug


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