Drake
eigen_stl_types.h
Go to the documentation of this file.
1 #pragma once
2 
7 
8 #include <functional>
9 #include <map>
10 #include <unordered_map>
11 #include <utility>
12 #include <vector>
13 
14 #include <Eigen/Core>
15 #include <Eigen/StdVector>
16 
18 
19 namespace drake {
20 
23 template <typename Key, typename T>
25  std::map<Key, T, std::less<Key>,
26  Eigen::aligned_allocator<std::pair<Key const, T>>>;
27 
30 template <typename Key, typename T>
32  std::unordered_map<Key, T, std::hash<Key>, std::equal_to<Key>,
33  Eigen::aligned_allocator<std::pair<Key const, T>>>;
34 
37 template <typename T>
38 using eigen_aligned_std_vector = std::vector<T, Eigen::aligned_allocator<T>>;
39 
40 } // namespace drake
std::map< Key, T, std::less< Key >, Eigen::aligned_allocator< std::pair< Key const, T >>> eigen_aligned_std_map
A std::map that uses Eigen::aligned_allocator so that the contained types may be fixed-size Eigen val...
Definition: eigen_stl_types.h:26
Definition: automotive_demo.cc:88
This header provides a std::make_unique implementation to be used when the compiler does not support ...
std::vector< T, Eigen::aligned_allocator< T >> eigen_aligned_std_vector
A std::vector that uses Eigen::aligned_allocator so that the contained types may be fixed-size Eigen ...
Definition: eigen_stl_types.h:38
std::unordered_map< Key, T, std::hash< Key >, std::equal_to< Key >, Eigen::aligned_allocator< std::pair< Key const, T >>> eigen_aligned_std_unordered_map
A std::unordered_map that uses Eigen::aligned_allocator so that the contained types may be fixed-size...
Definition: eigen_stl_types.h:33