/
usr
/
include
/
oneapi
/
tbb
/
detail
/
/usr/include/oneapi/tbb/detail
mkdir
upload
Name
Size
Mode
Actions
_aggregator.h
7562
0644
edit
dl
rm
_aligned_space.h
1399
0644
edit
dl
rm
_allocator_traits.h
3807
0644
edit
dl
rm
_assert.h
2392
0644
edit
dl
rm
_concurrent_queue_base.h
26360
0644
edit
dl
rm
_concurrent_skip_list.h
46628
0644
edit
dl
rm
_concurrent_unordered_base.h
64656
0644
edit
dl
rm
_config.h
20382
0644
edit
dl
rm
_containers_helpers.h
2627
0644
edit
dl
rm
_exception.h
2715
0644
edit
dl
rm
_export.h
1199
0644
edit
dl
rm
_flow_graph_body_impl.h
12776
0644
edit
dl
rm
_flow_graph_cache_impl.h
13615
0644
edit
dl
rm
_flow_graph_impl.h
15360
0644
edit
dl
rm
_flow_graph_indexer_impl.h
16529
0644
edit
dl
rm
_flow_graph_item_buffer_impl.h
10359
0644
edit
dl
rm
_flow_graph_join_impl.h
82886
0644
edit
dl
rm
_flow_graph_nodes_deduction.h
9532
0644
edit
dl
rm
_flow_graph_node_impl.h
27545
0644
edit
dl
rm
_flow_graph_node_set_impl.h
10177
0644
edit
dl
rm
_flow_graph_tagged_buffer_impl.h
10318
0644
edit
dl
rm
_flow_graph_trace_impl.h
15974
0644
edit
dl
rm
_flow_graph_types_impl.h
15623
0644
edit
dl
rm
_hash_compare.h
4488
0644
edit
dl
rm
_intrusive_list_node.h
1462
0644
edit
dl
rm
_machine.h
13042
0644
edit
dl
rm
_mutex_common.h
2347
0644
edit
dl
rm
_namespace_injection.h
815
0644
edit
dl
rm
_node_handle.h
5173
0644
edit
dl
rm
_pipeline_filters.h
15905
0644
edit
dl
rm
_pipeline_filters_deduction.h
1529
0644
edit
dl
rm
_range_common.h
4643
0644
edit
dl
rm
_rtm_mutex.h
4785
0644
edit
dl
rm
_rtm_rw_mutex.h
7210
0644
edit
dl
rm
_scoped_lock.h
5009
0644
edit
dl
rm
_segment_table.h
24750
0644
edit
dl
rm
_small_object_pool.h
3574
0644
edit
dl
rm
_string_resource.h
3872
0644
edit
dl
rm
_task.h
7116
0644
edit
dl
rm
_task_handle.h
3688
0644
edit
dl
rm
_template_helpers.h
13517
0644
edit
dl
rm
_utils.h
13318
0644
edit
dl
rm
_waitable_atomic.h
3532
0644
edit
dl
rm
Edit:
/usr/include/oneapi/tbb/detail/_flow_graph_nodes_deduction.h
(9532B)
/* 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_flow_graph_nodes_deduction_H #define __TBB_flow_graph_nodes_deduction_H #if __TBB_CPP17_DEDUCTION_GUIDES_PRESENT namespace tbb { namespace detail { namespace d1 { template <typename Input, typename Output> struct declare_body_types { using input_type = Input; using output_type = Output; }; struct NoInputBody {}; template <typename Output> struct declare_body_types<NoInputBody, Output> { using output_type = Output; }; template <typename T> struct body_types; template <typename T, typename Input, typename Output> struct body_types<Output (T::*)(const Input&) const> : declare_body_types<Input, Output> {}; template <typename T, typename Input, typename Output> struct body_types<Output (T::*)(const Input&)> : declare_body_types<Input, Output> {}; template <typename T, typename Input, typename Output> struct body_types<Output (T::*)(Input&) const> : declare_body_types<Input, Output> {}; template <typename T, typename Input, typename Output> struct body_types<Output (T::*)(Input&)> : declare_body_types<Input, Output> {}; template <typename T, typename Output> struct body_types<Output (T::*)(flow_control&) const> : declare_body_types<NoInputBody, Output> {}; template <typename T, typename Output> struct body_types<Output (T::*)(flow_control&)> : declare_body_types<NoInputBody, Output> {}; template <typename Input, typename Output> struct body_types<Output (*)(Input&)> : declare_body_types<Input, Output> {}; template <typename Input, typename Output> struct body_types<Output (*)(const Input&)> : declare_body_types<Input, Output> {}; template <typename Output> struct body_types<Output (*)(flow_control&)> : declare_body_types<NoInputBody, Output> {}; template <typename Body> using input_t = typename body_types<Body>::input_type; template <typename Body> using output_t = typename body_types<Body>::output_type; template <typename T, typename Input, typename Output> auto decide_on_operator_overload(Output (T::*name)(const Input&) const)->decltype(name); template <typename T, typename Input, typename Output> auto decide_on_operator_overload(Output (T::*name)(const Input&))->decltype(name); template <typename T, typename Input, typename Output> auto decide_on_operator_overload(Output (T::*name)(Input&) const)->decltype(name); template <typename T, typename Input, typename Output> auto decide_on_operator_overload(Output (T::*name)(Input&))->decltype(name); template <typename Input, typename Output> auto decide_on_operator_overload(Output (*name)(const Input&))->decltype(name); template <typename Input, typename Output> auto decide_on_operator_overload(Output (*name)(Input&))->decltype(name); template <typename Body> decltype(decide_on_operator_overload(&Body::operator())) decide_on_callable_type(int); template <typename Body> decltype(decide_on_operator_overload(std::declval<Body>())) decide_on_callable_type(...); // Deduction guides for Flow Graph nodes template <typename GraphOrSet, typename Body> input_node(GraphOrSet&&, Body) ->input_node<output_t<decltype(decide_on_callable_type<Body>(0))>>; #if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET template <typename NodeSet> struct decide_on_set; template <typename Node, typename... Nodes> struct decide_on_set<node_set<order::following, Node, Nodes...>> { using type = typename Node::output_type; }; template <typename Node, typename... Nodes> struct decide_on_set<node_set<order::preceding, Node, Nodes...>> { using type = typename Node::input_type; }; template <typename NodeSet> using decide_on_set_t = typename decide_on_set<std::decay_t<NodeSet>>::type; template <typename NodeSet> broadcast_node(const NodeSet&) ->broadcast_node<decide_on_set_t<NodeSet>>; template <typename NodeSet> buffer_node(const NodeSet&) ->buffer_node<decide_on_set_t<NodeSet>>; template <typename NodeSet> queue_node(const NodeSet&) ->queue_node<decide_on_set_t<NodeSet>>; #endif // __TBB_PREVIEW_FLOW_GRAPH_NODE_SET template <typename GraphOrProxy, typename Sequencer> sequencer_node(GraphOrProxy&&, Sequencer) ->sequencer_node<input_t<decltype(decide_on_callable_type<Sequencer>(0))>>; #if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET template <typename NodeSet, typename Compare> priority_queue_node(const NodeSet&, const Compare&) ->priority_queue_node<decide_on_set_t<NodeSet>, Compare>; template <typename NodeSet> priority_queue_node(const NodeSet&) ->priority_queue_node<decide_on_set_t<NodeSet>, std::less<decide_on_set_t<NodeSet>>>; #endif // __TBB_PREVIEW_FLOW_GRAPH_NODE_SET template <typename Key> struct join_key { using type = Key; }; template <typename T> struct join_key<const T&> { using type = T&; }; template <typename Key> using join_key_t = typename join_key<Key>::type; #if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET template <typename Policy, typename... Predecessors> join_node(const node_set<order::following, Predecessors...>&, Policy) ->join_node<std::tuple<typename Predecessors::output_type...>, Policy>; template <typename Policy, typename Successor, typename... Successors> join_node(const node_set<order::preceding, Successor, Successors...>&, Policy) ->join_node<typename Successor::input_type, Policy>; template <typename... Predecessors> join_node(const node_set<order::following, Predecessors...>) ->join_node<std::tuple<typename Predecessors::output_type...>, queueing>; template <typename Successor, typename... Successors> join_node(const node_set<order::preceding, Successor, Successors...>) ->join_node<typename Successor::input_type, queueing>; #endif template <typename GraphOrProxy, typename Body, typename... Bodies> join_node(GraphOrProxy&&, Body, Bodies...) ->join_node<std::tuple<input_t<decltype(decide_on_callable_type<Body>(0))>, input_t<decltype(decide_on_callable_type<Bodies>(0))>...>, key_matching<join_key_t<output_t<decltype(decide_on_callable_type<Body>(0))>>>>; #if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET template <typename... Predecessors> indexer_node(const node_set<order::following, Predecessors...>&) ->indexer_node<typename Predecessors::output_type...>; #endif #if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET template <typename NodeSet> limiter_node(const NodeSet&, size_t) ->limiter_node<decide_on_set_t<NodeSet>>; template <typename Predecessor, typename... Predecessors> split_node(const node_set<order::following, Predecessor, Predecessors...>&) ->split_node<typename Predecessor::output_type>; template <typename... Successors> split_node(const node_set<order::preceding, Successors...>&) ->split_node<std::tuple<typename Successors::input_type...>>; #endif template <typename GraphOrSet, typename Body, typename Policy> function_node(GraphOrSet&&, size_t, Body, Policy, node_priority_t = no_priority) ->function_node<input_t<decltype(decide_on_callable_type<Body>(0))>, output_t<decltype(decide_on_callable_type<Body>(0))>, Policy>; template <typename GraphOrSet, typename Body> function_node(GraphOrSet&&, size_t, Body, node_priority_t = no_priority) ->function_node<input_t<decltype(decide_on_callable_type<Body>(0))>, output_t<decltype(decide_on_callable_type<Body>(0))>, queueing>; template <typename Output> struct continue_output { using type = Output; }; template <> struct continue_output<void> { using type = continue_msg; }; template <typename T> using continue_output_t = typename continue_output<T>::type; template <typename GraphOrSet, typename Body, typename Policy> continue_node(GraphOrSet&&, Body, Policy, node_priority_t = no_priority) ->continue_node<continue_output_t<std::invoke_result_t<Body, continue_msg>>, Policy>; template <typename GraphOrSet, typename Body, typename Policy> continue_node(GraphOrSet&&, int, Body, Policy, node_priority_t = no_priority) ->continue_node<continue_output_t<std::invoke_result_t<Body, continue_msg>>, Policy>; template <typename GraphOrSet, typename Body> continue_node(GraphOrSet&&, Body, node_priority_t = no_priority) ->continue_node<continue_output_t<std::invoke_result_t<Body, continue_msg>>, Policy<void>>; template <typename GraphOrSet, typename Body> continue_node(GraphOrSet&&, int, Body, node_priority_t = no_priority) ->continue_node<continue_output_t<std::invoke_result_t<Body, continue_msg>>, Policy<void>>; #if __TBB_PREVIEW_FLOW_GRAPH_NODE_SET template <typename NodeSet> overwrite_node(const NodeSet&) ->overwrite_node<decide_on_set_t<NodeSet>>; template <typename NodeSet> write_once_node(const NodeSet&) ->write_once_node<decide_on_set_t<NodeSet>>; #endif // __TBB_PREVIEW_FLOW_GRAPH_NODE_SET } // namespace d1 } // namespace detail } // namespace tbb #endif // __TBB_CPP17_DEDUCTION_GUIDES_PRESENT #endif // __TBB_flow_graph_nodes_deduction_H
Save
cmd:
run