| 1 | /* ---------------------------------------------------------------------------- |
| 2 | |
| 3 | * GTSAM Copyright 2010, Georgia Tech Research Corporation, |
| 4 | * Atlanta, Georgia 30332-0415 |
| 5 | * All Rights Reserved |
| 6 | * Authors: Frank Dellaert, et al. (see THANKS for the full author list) |
| 7 | |
| 8 | * See LICENSE for the license information |
| 9 | |
| 10 | * -------------------------------------------------------------------------- */ |
| 11 | |
| 12 | /** |
| 13 | * @file FastVector.h |
| 14 | * @brief A thin wrapper around std::vector that uses a custom allocator. |
| 15 | * @author Richard Roberts |
| 16 | * @author Frank Dellaert |
| 17 | * @date Feb 9, 2011 |
| 18 | */ |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | #include <gtsam/base/FastDefaultAllocator.h> |
| 23 | #include <vector> |
| 24 | |
| 25 | namespace gtsam { |
| 26 | |
| 27 | /** |
| 28 | * FastVector is a type alias to a std::vector with a custom memory allocator. |
| 29 | * The particular allocator depends on GTSAM's cmake configuration. |
| 30 | * @ingroup base |
| 31 | */ |
| 32 | template <typename T> |
| 33 | using FastVector = |
| 34 | std::vector<T, typename internal::FastDefaultVectorAllocator<T>::type>; |
| 35 | |
| 36 | } // namespace gtsam |
| 37 | |