Skip to content

Specialize std::hash for NodeId/SubmapId#1907

Open
boscosiu wants to merge 1 commit into
cartographer-project:masterfrom
boscosiu:upstream-id-hash-specializations
Open

Specialize std::hash for NodeId/SubmapId#1907
boscosiu wants to merge 1 commit into
cartographer-project:masterfrom
boscosiu:upstream-id-hash-specializations

Conversation

@boscosiu

Copy link
Copy Markdown

Our software uses Cartographer directly without ROS, so it utilizes the submaps API and the mapping::NodeId and mapping::SubmapId types extensively.

This change adds std::hash<T> specializations to these types so they can be used with STL unordered associative containers.

@boscosiu boscosiu force-pushed the upstream-id-hash-specializations branch from 23dac18 to 09790ba Compare November 5, 2022 12:33
Signed-off-by: Bosco Siu <opensource@qadyence.com>
@boscosiu boscosiu force-pushed the upstream-id-hash-specializations branch from 09790ba to bd9d6ee Compare November 5, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant