File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ### Changed
11+
12+ - All map types are now ` boost::unordered_map ` ([ #203 ] ( https://github.com/Simple-Robotics/aligator/pull/203 ) )
13+
1014## [ 0.8.0] - 2024-09-18
1115
1216### Added
Original file line number Diff line number Diff line change 1515#include " aligator/utils/logger.hpp"
1616#include " aligator/threads.hpp"
1717
18- #include < unordered_map>
18+ #include < boost/ unordered_map.hpp >
1919
2020// / @brief A warning for the FDDP module.
2121#define ALIGATOR_FDDP_WARNING (msg ) ALIGATOR_WARNING(" SolverFDDP" , msg)
@@ -42,7 +42,7 @@ template <typename Scalar> struct SolverFDDPTpl {
4242 using ExpModel = ExplicitDynamicsModelTpl<Scalar>;
4343 using ExplicitDynamicsData = ExplicitDynamicsDataTpl<Scalar>;
4444 using CallbackPtr = shared_ptr<CallbackBaseTpl<Scalar>>;
45- using CallbackMap = std ::unordered_map<std::string, CallbackPtr>;
45+ using CallbackMap = boost ::unordered_map<std::string, CallbackPtr>;
4646
4747 Scalar target_tol_;
4848
Original file line number Diff line number Diff line change 1616
1717#include < proxsuite-nlp/bcl-params.hpp>
1818
19- #include < unordered_map>
19+ #include < boost/ unordered_map.hpp >
2020
2121namespace aligator {
2222namespace gar {
@@ -58,7 +58,7 @@ template <typename _Scalar> struct SolverProxDDPTpl {
5858 using ConstraintType = StageConstraintTpl<Scalar>;
5959 using StageData = StageDataTpl<Scalar>;
6060 using CallbackPtr = shared_ptr<CallbackBaseTpl<Scalar>>;
61- using CallbackMap = std ::unordered_map<std::string, CallbackPtr>;
61+ using CallbackMap = boost ::unordered_map<std::string, CallbackPtr>;
6262 using ConstraintStack = ConstraintStackTpl<Scalar>;
6363 using CstrSet = ConstraintSetBase<Scalar>;
6464 using TrajOptData = TrajOptDataTpl<Scalar>;
Original file line number Diff line number Diff line change 55#include < array>
66#include < string_view>
77#include < vector>
8- #include < map >
8+ #include < boost/unordered_map.hpp >
99
1010namespace aligator {
1111using uint = unsigned int ;
@@ -54,8 +54,9 @@ struct Logger {
5454protected:
5555 // sizes and formats
5656 std::vector<std::string_view> m_colNames;
57- std::map<std::string_view, std::pair<uint, std::string>> m_colSpecs;
58- std::map<std::string_view, std::string> m_currentLine;
57+ boost::unordered_map<std::string_view, std::pair<uint, std::string>>
58+ m_colSpecs;
59+ boost::unordered_map<std::string_view, std::string> m_currentLine;
5960};
6061
6162} // namespace aligator
You can’t perform that action at this time.
0 commit comments