|
Boost Users : |
Subject: Re: [Boost-users] Multi Index: Nested std::pair
From: JOAQUIN M. LOPEZ MUÑOZ (joaquin_at_[hidden])
Date: 2009-04-26 10:08:35
________________________________________
De: boost-users-bounces_at_[hidden] [boost-users-bounces_at_[hidden]] En nombre de Etienne Philip Pretorius [icewolfhunter_at_[hidden]]
Enviado el: domingo, 26 de abril de 2009 15:11
Para: boost-users_at_[hidden]
Asunto: [Boost-users] Multi Index: Nested std::pair
> Hello List,
>
> I would greatly appreciate if someone could assist me in getting this
> structure correct.
>
> boost::multi_index_container<
> std::list<
> std::pair<
> /*value*/
> unsigned char,
> std::pair<
> /*x co-ordinate*/
> unsigned char,
> /*y co-ordinate*/
> unsigned char
> >
> >
> >,
> [...]
First of all, you're defining a multi_index_container of *lists*,
i.e. each element of the container is a list of triplets (value,x,y).
Is this what you really meant, or maybe the std::list part has to be
dropped?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
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