Skip to content

Instantly share code, notes, and snippets.

View piranna's full-sized avatar

Jesús Leganés-Combarro piranna

View GitHub Profile
@piranna
piranna / OrderedHashMap.h
Created October 14, 2011 10:24
OrderedHashMap similar to Python OrderedDict implemented with Boost
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/sequenced_index.hpp>
using namespace ::boost;
using namespace ::boost::multi_index;
template <typename T1,typename T2>
struct mutable_pair