replaced ordered indices with hashed ones

[SVN r27856]
This commit is contained in:
Joaquín M. López Muñoz 2005-03-28 12:57:05 +00:00
parent 64df029256
commit 66db46fd1a

View File

@ -1,6 +1,6 @@
/* Boost.MultiIndex example of serialization.
/* Boost.MultiIndex example of serialization of a MRU list.
*
* Copyright 2003-2004 Joaquín M López Muñoz.
* Copyright 2003-2005 Joaquín M López Muñoz.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
@ -18,8 +18,8 @@
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/identity.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index/sequenced_index.hpp>
#include <fstream>
#include <iostream>
@ -42,7 +42,7 @@ class mru_list
Item,
indexed_by<
sequenced<>,
ordered_unique<identity<Item> >
hashed_unique<identity<Item> >
>
> item_list;