23 #if GTSAM_ENABLE_BOOST_SERIALIZATION
24 #include <boost/serialization/nvp.hpp>
25 #include <boost/serialization/version.hpp>
26 #if BOOST_VERSION >= 107400
27 #include <boost/serialization/library_version_type.hpp>
29 #include <boost/serialization/list.hpp>
42 template<
typename VALUE>
43 class FastList:
public std::list<VALUE, typename internal::FastDefaultAllocator<VALUE>::type> {
53 template<
typename INPUTITERATOR>
67 #ifdef GTSAM_ALLOCATOR_BOOSTPOOL
74 Base::assign(
x.begin(),
x.end());
79 operator std::list<VALUE>()
const {
80 return std::list<VALUE>(this->begin(), this->
end());
84 #if GTSAM_ENABLE_BOOST_SERIALIZATION
86 friend class boost::serialization::access;
87 template<
class ARCHIVE>
88 void serialize(ARCHIVE & ar,
const unsigned int ) {
89 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);