ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
[boost] Re: Userfriendly interaction of tuples with mpl containers
by Daniel =?iso-8859-1?Q?Kr=FCgler?= (nee Spangenberg) other posts by this author
Jan 15 2004 7:15AM messages near this date
[boost] Userfriendly interaction of tuples with mpl containers | Re: [boost] Userfriendly interaction of tuples with mpl containers
Good Morning, Giovanni Bajo!

Giovanni Bajo schrieb:

>  Daniel Krügler (nee Spangenberg) wrote:
> 
>  > Does there exist a boost::mpl way (?) to define my
>  > boost::tuples::tuple<> inside the given
>  > Test class template until the last non-mpl::void_ is filled into it?
>  > (Iteration until end??)
> 
>  Can't you just say:
> 
>  typedef typename mpl::remove<InternalTypeContainer, mpl::void_>::type
>     InternalTypeContainerNoVoid;

I probably could, but I don't think, that that will get the reached effect. My
problem simply is: How can I create a container class for those types contained
inside mpl::vector? Something like

typedef mpl::vector<T0, T1, T2, T3,...>  MyTypes;
typedef mpl::container_tuple<MyTypes>   MyData;

where "container_tuple" is a symbol for a tuple-like class, which contains the
types defined by the the types inside the mpl::container, which are between
mpl::begin(mpl_container) and mpl::end(mpl_container). I say it in another
way: A tuple class, which is defined by the size (and not the capacity) of an
mpl::container.

Does there exist such a "mpl::container_tuple" inside the Boost.mpl library or
a workaround for this? (As I mentioned: Due to my restriction on VC6, I have
some limitations here...)

Thanks for your input,

Daniel



_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Daniel =?iso-8859-1?Q?Kr=FCgler?= (nee Spangenberg)
Daniel =?iso-8859-1?Q?Kr=FCgler?= (nee Spangenberg)
Aleksey Gurtovoy
Giovanni Bajo

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved