Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-07-17 10:06:31


on Tue Jul 17 2007, "Peng Yu" <pengyu.ut-AT-gmail.com> wrote:

> On 7/16/07, Mathias Gaunard <mathias.gaunard_at_[hidden]> wrote:
>> Peng Yu wrote:
>>
>> > I've seen typelist somewhere. I'm wondering if it is defined in boost?
>>
>> Boost has better than that, it has the Boost Meta-Programming Library
>> (MPL) that contains various data structures and algorithms around types.
>
> Hi,
>
> I saw list in mpl. But I'm not familiar with it yet. Would you please
> show me how to do the same thing in mpl as that in my original
> email?

typedef boost::mpl::list<Rect_, Square_, Triangle_, RightTriangle_> Shapes_;

See http://www.boost-consulting.com/mplbook

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com
The Astoria Seminar ==> http://www.astoriaseminar.com

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