23 #ifdef 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>
65 #ifdef GTSAM_ALLOCATOR_BOOSTPOOL
72 Base::assign(
x.begin(),
x.end());
77 operator std::list<VALUE>()
const {
78 return std::list<VALUE>(this->begin(), this->
end());
82 #ifdef GTSAM_ENABLE_BOOST_SERIALIZATION
84 friend class boost::serialization::access;
85 template<
class ARCHIVE>
86 void serialize(ARCHIVE & ar,
const unsigned int ) {
87 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(
Base);