23 #if !defined GTSAM_ALLOCATOR_BOOSTPOOL && !defined GTSAM_ALLOCATOR_TBB && !defined GTSAM_ALLOCATOR_STL
26 # define GTSAM_ALLOCATOR_TBB
28 # define GTSAM_ALLOCATOR_BOOSTPOOL
32 #if defined GTSAM_ALLOCATOR_BOOSTPOOL
33 # include <boost/pool/pool_alloc.hpp>
34 #elif defined GTSAM_ALLOCATOR_TBB
35 # include <tbb/tbb_allocator.h>
36 # undef min // TBB seems to include Windows.h which defines these macros that cause problems
39 #elif defined GTSAM_ALLOCATOR_STL
52 #if defined GTSAM_ALLOCATOR_BOOSTPOOL
53 typedef boost::fast_pool_allocator<T> type;
54 static const bool isBoost =
true;
55 static const bool isTBB =
false;
56 static const bool isSTL =
false;
57 #elif defined GTSAM_ALLOCATOR_TBB
58 typedef tbb::tbb_allocator<T> type;
59 static const bool isBoost =
false;
60 static const bool isTBB =
true;
61 static const bool isSTL =
false;
62 #elif defined GTSAM_ALLOCATOR_STL
63 typedef std::allocator<T> type;
64 static const bool isBoost =
false;
65 static const bool isTBB =
false;
66 static const bool isSTL =
true;
74 #if defined GTSAM_ALLOCATOR_TBB
75 typedef tbb::tbb_allocator<T> type;
76 static const bool isBoost =
false;
77 static const bool isTBB =
true;
78 static const bool isSTL =
false;
80 typedef std::allocator<T> type;
81 static const bool isBoost =
false;
82 static const bool isTBB =
false;
83 static const bool isSTL =
true;
Default allocator for vector types (we never use boost pool for vectors)
Definition: FastDefaultAllocator.h:72
Included from all GTSAM files.
Default allocator for list, map, and set types.
Definition: FastDefaultAllocator.h:50