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

[oneTBB] Heterogeneous overloads for concurrent_hash_map #356

Merged

Conversation

kboyarinov
Copy link
Contributor

Adding description for heterogeneous overloads for concurrent_hash_map member functions (find, count, erase, insert, equal_range).

Signed-off-by: kboyarinov konstantin.boyarinov@intel.com

@kboyarinov
Copy link
Contributor Author

@ivankochin, @alexey-katranov, @alexandraepan, could you please review?

@@ -52,3 +52,21 @@ equal_range
a pair of iterators ``{f, l}``, where ``f`` is an iterator to this element,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
a pair of iterators ``{f, l}``, where ``f`` is an iterator to this element,
returns a pair of iterators ``{f, l}``, where ``f`` is an iterator to this element,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have rephrased this section in the other manner.

@aepanchi
Copy link
Contributor

aepanchi commented Sep 2, 2021

@kboyarinov if file was updated, please add 2021 to the license. For example, .. SPDX-FileCopyrightText: 2019-2021 Intel Corporation. If file was just created, use .. SPDX-FileCopyrightText: 2021 Intel Corporation

template <typename K>
bool erase( const K& key );

If an element with the key that compares equivalent to the value ``key`` exists, removes it from the container.
Copy link
Contributor

Choose a reason for hiding this comment

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

Same with indent here

@omalyshe omalyshe added the TBB label Sep 10, 2021
// Parallel iteration
range_type range( std::size_t grainsize = 1 );
const_range_type range( std::size_t grainsize = 1 ) const;
}; // class concurrent_hash_map

Copy link
Contributor

Choose a reason for hiding this comment

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

This line removing is inconsistent with the namespace opening.

kboyarinov and others added 2 commits September 20, 2021 23:09
…ls.rst

Co-authored-by: Ivan Kochin <kochin.ivan@intel.com>
@kboyarinov kboyarinov enabled auto-merge (squash) September 20, 2021 20:29
@kboyarinov kboyarinov merged commit 277329d into uxlfoundation:main Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants