26 #include <boost/multi_index_container.hpp>    27 #include <boost/multi_index/member.hpp>    28 #include <boost/multi_index/ordered_index.hpp>    40 template<
typename FromType,
typename ToType>
    43     typedef std::pair<FromType,ToType> value_type;
    51     typedef boost::multi_index_container< value_type,
    52       boost::multi_index::indexed_by<
    53       boost::multi_index::ordered_unique<
    54         boost::multi_index::tag<from>,boost::multi_index::member<value_type,FromType,&value_type::first> >,
    55       boost::multi_index::ordered_unique<
    56         boost::multi_index::tag<to>,  boost::multi_index::member<value_type,ToType,&value_type::second> >