mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Correct std::map fix (two commits ago); copy fix to aligned_allocator doc.
This commit is contained in:
@@ -27,9 +27,9 @@ std::map<int, Eigen::Vector4f>
|
||||
you need to use
|
||||
\code
|
||||
std::map<int, Eigen::Vector4f, std::less<int>,
|
||||
std::pair<const int, Eigen::aligned_allocator<Eigen::Vector4f> > >
|
||||
Eigen::aligned_allocator<std::pair<const int, Eigen::Vector4f> > >
|
||||
\endcode
|
||||
Note that here, the 3rd parameter "std::less<int>" is just the default value, we only had to specify it because we needed to specify the allocator type, that is the 4th parameter.
|
||||
Note that the third parameter "std::less<int>" is just the default value, but we have to include it because we want to specify the fourth parameter, which is the allocator type.
|
||||
|
||||
\section vector The case of std::vector
|
||||
|
||||
|
||||
Reference in New Issue
Block a user