/usr/include/oneapi/tbb/detail
NameSizeModeActions
_aggregator.h75620644editdlrm
_aligned_space.h13990644editdlrm
_allocator_traits.h38070644editdlrm
_assert.h23920644editdlrm
_concurrent_queue_base.h263600644editdlrm
_concurrent_skip_list.h466280644editdlrm
_concurrent_unordered_base.h646560644editdlrm
_config.h203820644editdlrm
_containers_helpers.h26270644editdlrm
_exception.h27150644editdlrm
_export.h11990644editdlrm
_flow_graph_body_impl.h127760644editdlrm
_flow_graph_cache_impl.h136150644editdlrm
_flow_graph_impl.h153600644editdlrm
_flow_graph_indexer_impl.h165290644editdlrm
_flow_graph_item_buffer_impl.h103590644editdlrm
_flow_graph_join_impl.h828860644editdlrm
_flow_graph_nodes_deduction.h95320644editdlrm
_flow_graph_node_impl.h275450644editdlrm
_flow_graph_node_set_impl.h101770644editdlrm
_flow_graph_tagged_buffer_impl.h103180644editdlrm
_flow_graph_trace_impl.h159740644editdlrm
_flow_graph_types_impl.h156230644editdlrm
_hash_compare.h44880644editdlrm
_intrusive_list_node.h14620644editdlrm
_machine.h130420644editdlrm
_mutex_common.h23470644editdlrm
_namespace_injection.h8150644editdlrm
_node_handle.h51730644editdlrm
_pipeline_filters.h159050644editdlrm
_pipeline_filters_deduction.h15290644editdlrm
_range_common.h46430644editdlrm
_rtm_mutex.h47850644editdlrm
_rtm_rw_mutex.h72100644editdlrm
_scoped_lock.h50090644editdlrm
_segment_table.h247500644editdlrm
_small_object_pool.h35740644editdlrm
_string_resource.h38720644editdlrm
_task.h71160644editdlrm
_task_handle.h36880644editdlrm
_template_helpers.h135170644editdlrm
_utils.h133180644editdlrm
_waitable_atomic.h35320644editdlrm
Edit: /usr/include/oneapi/tbb/detail/_range_common.h (4643B)
/* Copyright (c) 2005-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_detail__range_common_H #define __TBB_detail__range_common_H #include "_config.h" #include "_utils.h" #if __TBB_CPP20_CONCEPTS_PRESENT #include #include #endif namespace tbb { namespace detail { inline namespace d0 { //! Dummy type that distinguishes splitting constructor from copy constructor. /** * See description of parallel_for and parallel_reduce for example usages. * @ingroup algorithms */ class split {}; //! Type enables transmission of splitting proportion from partitioners to range objects /** * In order to make use of such facility Range objects must implement * splitting constructor with this type passed. */ class proportional_split : no_assign { public: proportional_split(size_t _left = 1, size_t _right = 1) : my_left(_left), my_right(_right) { } size_t left() const { return my_left; } size_t right() const { return my_right; } // used when range does not support proportional split explicit operator split() const { return split(); } private: size_t my_left, my_right; }; template struct range_split_object_provider { template static split get( PartitionerSplitType& ) { return split(); } }; template struct range_split_object_provider::value>::type> { template static PartitionerSplitType& get( PartitionerSplitType& split_obj ) { return split_obj; } }; template auto get_range_split_object( PartitionerSplitType& split_obj ) -> decltype(range_split_object_provider::get(split_obj)) { return range_split_object_provider::get(split_obj); } #if __TBB_CPP20_CONCEPTS_PRESENT template using range_iterator_type = decltype(std::begin(std::declval())); template using iterator_reference_type = typename std::iterator_traits::reference; template using range_reference_type = iterator_reference_type>; template concept blocked_range_value = std::copyable && requires( const std::remove_reference_t& lhs, const std::remove_reference_t& rhs ) { { lhs < rhs } -> relaxed_convertible_to; { lhs - rhs } -> std::convertible_to; { lhs + (rhs - lhs) } -> std::convertible_to; }; template concept splittable = std::constructible_from; template concept tbb_range = std::copy_constructible && splittable && requires( const std::remove_reference_t& range ) { { range.empty() } -> relaxed_convertible_to; { range.is_divisible() } -> relaxed_convertible_to; }; template constexpr bool iterator_concept_helper( std::input_iterator_tag ) { return std::input_iterator; } template constexpr bool iterator_concept_helper( std::random_access_iterator_tag ) { return std::random_access_iterator; } template concept iterator_satisfies = requires (IteratorTag tag) { requires iterator_concept_helper(tag); }; template concept container_based_sequence = requires( Sequence& seq ) { { std::begin(seq) } -> iterator_satisfies; { std::end(seq) } -> iterator_satisfies; }; #endif // __TBB_CPP20_CONCEPTS_PRESENT } // namespace d0 } // namespace detail } // namespace tbb #endif // __TBB_detail__range_common_H