Boost logo

Boost :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2004-04-15 15:35:53


----- Mensaje original -----
De: Jeremy Maitin-Shepard <jbms_at_[hidden]>
Fecha: Jueves, Abril 15, 2004 7:50 pm
Asunto: Re: [boost] Re: [indexed_set] revised naming proposal

> How about just allowing any MPL sequence to specify the indices?

mpl_index_list does precisely this. Check the MPL
part in the advanced topics section of the docs.

>
> Also, it would be a nice syntactic convenience to allow the main
> container template to accept a "variable" number of parameters,
> and then
> allow the indices to be specified as parameters directly to the main
> container template.
>

Pardon? Do you mean something like

multi_index_container
<
  employee,
  ordered_unique<...>,
  unordered_unique<...>
>

without the index_list<> nesting? This cannot be done,
as multi_index_container accepts an additional
argument, the allocator class.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


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