On Fri, May 9, 2008 at 9:59 PM, JOAQUIN M. LOPEZ MUŅOZ <joaquin@tid.es> wrote:
De: boost-users-bounces@lists.boost.org [boost-users-bounces@lists.boost.org] En nombre de francesco biscani [bluescarni@gmail.com]
Enviado el: viernes, 09 de mayo de 2008 21:36Asunto: Re: [Boost-users] testing for multi_index equality
>
>> Hi Joaquin,
>
> does this mean that if the zeroth index is unordered or ordered but non-unique you could> have a false negative in the equality test due to elements ordering being undefined?
What do you mean by unordered? If the zeroth index is hashed, containerequality will fail to compile. In all other cases, equality depends on the orderingof the elements, which is not strictly determined for ordered_non_unique,sequenced and random_access. This might not coincide with your requirednotion for equality. I simply mimicked the modus operandi of STL containers.