22 #if GTSAM_ENABLE_BOOST_SERIALIZATION
23 #include <boost/serialization/nvp.hpp>
24 #include <boost/serialization/map.hpp>
38 template<
typename KEY,
typename VALUE>
39 class FastMap :
public std::map<KEY, VALUE, std::less<KEY>,
40 typename internal::FastDefaultAllocator<std::pair<const KEY, VALUE> >::type> {
44 typedef std::map<KEY, VALUE, std::less<KEY>,
51 template<
typename INPUTITERATOR>
63 operator std::map<KEY,VALUE>()
const {
64 return std::map<KEY,VALUE>(this->begin(), this->
end());
74 #if GTSAM_ENABLE_BOOST_SERIALIZATION
76 friend class boost::serialization::access;
77 template<
class ARCHIVE>
78 void serialize(ARCHIVE & ar,
const unsigned int ) {
79 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);