-
Notifications
You must be signed in to change notification settings - Fork 109
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
[oneTBB] Heterogeneous overloads for concurrent_hash_map #356
Conversation
@ivankochin, @alexey-katranov, @alexandraepan, could you please review? |
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/iterators.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/iterators.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/iterators.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/lookup.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/lookup.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/modifiers.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/modifiers.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/iterators.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/lookup.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/modifiers.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/iterators.rst
Outdated
Show resolved
Hide resolved
@@ -52,3 +52,21 @@ equal_range | |||
a pair of iterators ``{f, l}``, where ``f`` is an iterator to this element, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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, |
There was a problem hiding this comment.
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.
@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 |
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/lookup.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/iterators.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/iterators.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/modifiers.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/modifiers.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/modifiers.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/modifiers.rst
Outdated
Show resolved
Hide resolved
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with indent here
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/modifiers.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls/modifiers.rst
Outdated
Show resolved
Hide resolved
source/elements/oneTBB/source/containers/concurrent_hash_map_cls.rst
Outdated
Show resolved
Hide resolved
// Parallel iteration | ||
range_type range( std::size_t grainsize = 1 ); | ||
const_range_type range( std::size_t grainsize = 1 ) const; | ||
}; // class concurrent_hash_map | ||
|
There was a problem hiding this comment.
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.
…ls.rst Co-authored-by: Ivan Kochin <[email protected]>
Adding description for heterogeneous overloads for concurrent_hash_map member functions (find, count, erase, insert, equal_range).
Signed-off-by: kboyarinov [email protected]