mirror of
https://github.com/boostorg/multi_index.git
synced 2025-05-09 23:14:04 +00:00
replaced ordered indices with hashed ones
[SVN r27856]
This commit is contained in:
parent
64df029256
commit
66db46fd1a
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user