Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct MyHashCompare example in concurrent_hash_map page #1339

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

db7894
Copy link
Contributor

@db7894 db7894 commented Apr 3, 2024

Description

Requirements from HashCompare state that hash and equals should be regular class functions as opposed to static, and have const modifiers at the end. The example in concurrent_hash_map.h isn't consistent with this (or with the More on HashCompare page).

Signed off by: Daniel Bashir [email protected]

Fixes # - N/A

  • - git commit message contains an appropriate signed-off-by string (see CONTRIBUTING.md for details)

Type of change

  • bug fix - change that fixes an issue
  • new feature - change that adds functionality
  • tests - change in tests
  • infrastructure - change in infrastructure and CI
  • documentation - documentation update

Tests

  • added - required for new features and some bug fixes
  • not needed

Documentation

  • updated in # - 1339 (this PR)
  • needs to be updated
  • not needed

Breaks backward compatibility

  • Yes
  • No
  • Unknown

Notify the following users

N/A

Other information

N/A

Requirements from [HashCompare](https://spec.oneapi.io/versions/latest/elements/oneTBB/source/named_requirements/containers/hash_compare.html) state that `hash` and `equals` should be regular class functions as opposed to `static`, and have `const` modifiers at the end. The example in `concurrent_hash_map.h` isn't consistent with this (or with the [More on HashCompare](https://oneapi-src.github.io/oneTBB/main/tbb_userguide/More_on_HashCompare.html) page).

Signed off by: Daniel Bashir <[email protected]>
Copy link
Contributor

@kboyarinov kboyarinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kboyarinov kboyarinov merged commit 5155e9f into uxlfoundation:master Apr 18, 2024
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants