2009-11-10から1日間の記事一覧

Boost.MultiIndexで基本クラスのメンバをキーにする

C++

BoostML - multi_index with base class member boost::multi_index::member<base, int, &derived::a> みたいに指定する。 #include <iostream> #include <boost/multi_index_container.hpp> #include <boost/multi_index/ordered_index.hpp> #include <boost/multi_index/member.hpp> #include <boost/foreach.hpp> using namespace…</boost/foreach.hpp></boost/multi_index/member.hpp></boost/multi_index/ordered_index.hpp></boost/multi_index_container.hpp></iostream></base,>