Boost logo

Boost Users :

Subject: Re: [Boost-users] Multi Index: Nested std::pair
From: Etienne Philip Pretorius (icewolfhunter_at_[hidden])
Date: 2009-04-27 04:46:36


Igor R wrote:
>> boost::multi_index::ordered_unique<
>> boost::multi_index::composite_key<
>> element_t,
>> boost::multi_index::member<
>> element_t,
>> unsigned char,
>> &element_t::x
>> >,
>> boost::multi_index::member<
>> element_t,
>> unsigned char,
>> &element_t::value
>> >
>> >
>> >
>>
>> As it is not clear in the documentation what the
>> "boost::multi_index::ordered_unique" scope is.
>
> The scope is the key you define under "ordered_unique". In the above
> example you define a unique key that consists of (x, value). I.e., the
> container would disallow duplicate (x, value) pair.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

Found the problem,

The size of the container is only "32260" where I would expect it to be
65536. Seems like the keys that I have defined above, are not allowed to
be added to the container. Is there any way to over-ride this behavior?
As the keys should only provide a "view" of the containers contents...
Like selecting from a database.

Etienne


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