/usr/include/oneapi/tbb
NameSizeModeActions
detail/-0755rm
blocked_range.h64530644editdlrm
blocked_range2d.h33690644editdlrm
blocked_range3d.h44550644editdlrm
blocked_rangeNd.h55080644editdlrm
cache_aligned_allocator.h69050644editdlrm
collaborative_call_once.h90530644editdlrm
combinable.h19690644editdlrm
concurrent_hash_map.h718930644editdlrm
concurrent_lru_cache.h137370644editdlrm
concurrent_map.h134160644editdlrm
concurrent_priority_queue.h195310644editdlrm
concurrent_queue.h240300644editdlrm
concurrent_set.h102410644editdlrm
concurrent_unordered_map.h186970644editdlrm
concurrent_unordered_set.h148500644editdlrm
concurrent_vector.h461990644editdlrm
enumerable_thread_specific.h424030644editdlrm
flow_graph.h1283390644editdlrm
flow_graph_abstractions.h14460644editdlrm
global_control.h61390644editdlrm
info.h41790644editdlrm
memory_pool.h99730644editdlrm
mutex.h26280644editdlrm
null_mutex.h21490644editdlrm
null_rw_mutex.h25140644editdlrm
parallel_for.h234510644editdlrm
parallel_for_each.h270640644editdlrm
parallel_invoke.h77830644editdlrm
parallel_pipeline.h57550644editdlrm
parallel_reduce.h370780644editdlrm
parallel_scan.h228100644editdlrm
parallel_sort.h111140644editdlrm
partitioner.h285000644editdlrm
profiling.h100050644editdlrm
queuing_mutex.h63910644editdlrm
queuing_rw_mutex.h66310644editdlrm
rw_mutex.h81500644editdlrm
scalable_allocator.h116550644editdlrm
spin_mutex.h35130644editdlrm
spin_rw_mutex.h78390644editdlrm
task.h10900644editdlrm
task_arena.h178530644editdlrm
task_group.h273290644editdlrm
task_scheduler_observer.h45850644editdlrm
tbbmalloc_proxy.h19070644editdlrm
tbb_allocator.h37820644editdlrm
tick_count.h32010644editdlrm
version.h40070644editdlrm
Edit: /usr/include/oneapi/tbb/concurrent_set.h (10241B)
/* Copyright (c) 2019-2021 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #ifndef __TBB_concurrent_set_H #define __TBB_concurrent_set_H #include "detail/_namespace_injection.h" #include "detail/_concurrent_skip_list.h" #include "tbb_allocator.h" #include #include namespace tbb { namespace detail { namespace d2 { template struct set_traits { static constexpr std::size_t max_level = RandomGenerator::max_level; using random_level_generator_type = RandomGenerator; using key_type = Key; using value_type = key_type; using compare_type = KeyCompare; using value_compare = compare_type; using reference = value_type&; using const_reference = const value_type&; using allocator_type = Allocator; static constexpr bool allow_multimapping = AllowMultimapping; static const key_type& get_key(const_reference val) { return val; } static value_compare value_comp(compare_type comp) { return comp; } }; // struct set_traits template class concurrent_multiset; template , typename Allocator = tbb::tbb_allocator> class concurrent_set : public concurrent_skip_list, Allocator, false>> { using base_type = concurrent_skip_list, Allocator, false>>; public: using key_type = Key; using value_type = typename base_type::value_type; using size_type = typename base_type::size_type; using difference_type = typename base_type::difference_type; using key_compare = Compare; using value_compare = typename base_type::value_compare; using allocator_type = Allocator; using reference = typename base_type::reference; using const_reference = typename base_type::const_reference; using pointer = typename base_type::pointer; using const_pointer = typename base_type::const_pointer; using iterator = typename base_type::iterator; using const_iterator = typename base_type::const_iterator; using node_type = typename base_type::node_type; // Include constructors of base_type using base_type::base_type; using base_type::operator=; // Required for implicit deduction guides concurrent_set() = default; concurrent_set( const concurrent_set& ) = default; concurrent_set( const concurrent_set& other, const allocator_type& alloc ) : base_type(other, alloc) {} concurrent_set( concurrent_set&& ) = default; concurrent_set( concurrent_set&& other, const allocator_type& alloc ) : base_type(std::move(other), alloc) {} // Required to respect the rule of 5 concurrent_set& operator=( const concurrent_set& ) = default; concurrent_set& operator=( concurrent_set&& ) = default; template void merge(concurrent_set& source) { this->internal_merge(source); } template void merge(concurrent_set&& source) { this->internal_merge(std::move(source)); } template void merge(concurrent_multiset& source) { this->internal_merge(source); } template void merge(concurrent_multiset&& source) { this->internal_merge(std::move(source)); } }; // class concurrent_set #if __TBB_CPP17_DEDUCTION_GUIDES_PRESENT template >, typename Alloc = tbb::tbb_allocator>, typename = std::enable_if_t>, typename = std::enable_if_t>, typename = std::enable_if_t>> concurrent_set( It, It, Comp = Comp(), Alloc = Alloc() ) -> concurrent_set, Comp, Alloc>; template , typename Alloc = tbb::tbb_allocator, typename = std::enable_if_t>, typename = std::enable_if_t>> concurrent_set( std::initializer_list, Comp = Comp(), Alloc = Alloc() ) -> concurrent_set; template >, typename = std::enable_if_t>> concurrent_set( It, It, Alloc ) -> concurrent_set, std::less>, Alloc>; template >> concurrent_set( std::initializer_list, Alloc ) -> concurrent_set, Alloc>; #endif // __TBB_CPP17_DEDUCTION_GUIDES_PRESENT template void swap( concurrent_set& lhs, concurrent_set& rhs ) { lhs.swap(rhs); } template , typename Allocator = tbb::tbb_allocator> class concurrent_multiset : public concurrent_skip_list, Allocator, true>> { using base_type = concurrent_skip_list, Allocator, true>>; public: using key_type = Key; using value_type = typename base_type::value_type; using size_type = typename base_type::size_type; using difference_type = typename base_type::difference_type; using key_compare = Compare; using value_compare = typename base_type::value_compare; using allocator_type = Allocator; using reference = typename base_type::reference; using const_reference = typename base_type::const_reference; using pointer = typename base_type::pointer; using const_pointer = typename base_type::const_pointer; using iterator = typename base_type::iterator; using const_iterator = typename base_type::const_iterator; using node_type = typename base_type::node_type; // Include constructors of base_type; using base_type::base_type; using base_type::operator=; // Required for implicit deduction guides concurrent_multiset() = default; concurrent_multiset( const concurrent_multiset& ) = default; concurrent_multiset( const concurrent_multiset& other, const allocator_type& alloc ) : base_type(other, alloc) {} concurrent_multiset( concurrent_multiset&& ) = default; concurrent_multiset( concurrent_multiset&& other, const allocator_type& alloc ) : base_type(std::move(other), alloc) {} // Required to respect the rule of 5 concurrent_multiset& operator=( const concurrent_multiset& ) = default; concurrent_multiset& operator=( concurrent_multiset&& ) = default; template void merge(concurrent_set& source) { this->internal_merge(source); } template void merge(concurrent_set&& source) { this->internal_merge(std::move(source)); } template void merge(concurrent_multiset& source) { this->internal_merge(source); } template void merge(concurrent_multiset&& source) { this->internal_merge(std::move(source)); } }; // class concurrent_multiset #if __TBB_CPP17_DEDUCTION_GUIDES_PRESENT template >, typename Alloc = tbb::tbb_allocator>, typename = std::enable_if_t>, typename = std::enable_if_t>, typename = std::enable_if_t>> concurrent_multiset( It, It, Comp = Comp(), Alloc = Alloc() ) -> concurrent_multiset, Comp, Alloc>; template , typename Alloc = tbb::tbb_allocator, typename = std::enable_if_t>, typename = std::enable_if_t>> concurrent_multiset( std::initializer_list, Comp = Comp(), Alloc = Alloc() ) -> concurrent_multiset; template >, typename = std::enable_if_t>> concurrent_multiset( It, It, Alloc ) -> concurrent_multiset, std::less>, Alloc>; template >> concurrent_multiset( std::initializer_list, Alloc ) -> concurrent_multiset, Alloc>; #endif // __TBB_CPP17_DEDUCTION_GUIDES_PRESENT template void swap( concurrent_multiset& lhs, concurrent_multiset& rhs ) { lhs.swap(rhs); } } // namespace d2 } // namespace detail inline namespace v1 { using detail::d2::concurrent_set; using detail::d2::concurrent_multiset; using detail::split; } // inline namespace v1 } // namespace tbb #endif // __TBB_concurrent_set_H