2010-09-02から1日間の記事一覧

Boost.MultiIndex ordered_index/hashed_indexにat()メンバ関数を追加するパッチ

C++

を書きました。 【例】 #include <string> #include <boost/multi_index_container.hpp> #include <boost/multi_index/ordered_index.hpp> #include <boost/multi_index/member.hpp> struct id_name { int id; std::string name; id_name(int id, const std::string& name) : id(id), name(name) {} }; using namespace boost::multi_…</boost/multi_index/member.hpp></boost/multi_index/ordered_index.hpp></boost/multi_index_container.hpp></string>