/** * \file internal/utility.h * \brief Various useful utilities * * Copyright 2007-2010 IMP Inventors. All rights reserved. */ #ifndef IMP_INTERNAL_MAP_H #define IMP_INTERNAL_MAP_H #include "../kernel_config.h" #if IMP_BOOST_VERSION > 103500 #include #include #else #include #include #endif #include IMP_BEGIN_INTERNAL_NAMESPACE template class Map: #if IMP_BOOST_VERSION > 103500 public boost::unordered_map #else public std::map #endif { #if IMP_BOOST_VERSION > 103500 typedef boost::unordered_map P; #else typedef std::map P; #endif public: Map(){} template Map(It b, It e): P(b,e){} }; template class Set: #if IMP_BOOST_VERSION > 103500 public boost::unordered_set #else public std::set #endif { #if IMP_BOOST_VERSION > 103500 typedef boost::unordered_set P; #else typedef std::set P; #endif public: Set(){} template Set(It b, It e): P(b,e){} }; IMP_END_INTERNAL_NAMESPACE #endif /* IMP_INTERNAL_MAP_H */