Boost logo

Boost Users :

Subject: Re: [Boost-users] How to get tuple member type ?
From: Stefan Strasser (strasser_at_[hidden])
Date: 2010-07-02 07:32:39


Zitat von Timothy Madden <terminatorul_at_[hidden]>:

> Hello
>
> I have constructed a type of STL containers and tuples in my
> prgogram, and even though I have a typedef for it, when I use it I
> often need the inner types involved.
>
> Now STL has the value_type declarations for all containers, but for
> tuples is there a documented way to get the type of a tuple member ?
> Or the type of the tuple<>::get<>() function ?

http://www.boost.org/doc/libs/1_40_0/libs/tuple/doc/tuple_advanced_interface.html

you might want to use fusion vectors instead of tuples though.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net