Template Struct dispatch_set
Defined in File dispatch.hpp
Nested Relationships
Nested Types
Struct Documentation
-
template<typename ValueType, typename ...Tuples>
struct dispatch_set Exact set of allowed tuples for sparse dispatch.
Where a tuple of
dispatch_params probes the full cartesian product,dispatch_setenumerates only the combinations that exist:using Shapes = poet::dispatch_set<int, poet::tuple_<2, 2>, poet::tuple_<4, 4>>; poet::dispatch(MatMul{}, Shapes{rows, cols}, a, b, c);
Note
Unlike the
dispatch_paramoverloads, this path calls only the template formfunctor.template operator()<Values...>(args...). A functor takingstd::integral_constantparameters will not compile here.- Template Parameters:
ValueType – Type every tuple element is converted to.
Tuples – The allowed combinations, as
tuple_<...>. All must have the same arity and be distinct.
Public Types
Public Functions
-
template<typename ...Args, typename = std::enable_if_t<sizeof...(Args) == tuple_arity>>
inline explicit dispatch_set(Args&&... args) Binds the runtime values to probe. Requires exactly
tuple_arityof them.
-
inline auto runtime_tuple() const