MCPcopy Create free account
hub / github.com/boostorg/leaf / dispatch

Method dispatch

include/boost/leaf/detail/encoder.hpp:76–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75 template <class... Fn>
76 bool dispatch(Fn && ... fn)
77 {
78 using encoder_types = leaf_detail_mp11::mp_list<typename std::decay<fn_arg_type<Fn, 0>>::type...>;
79 static_assert(std::is_same<encoder_types, leaf_detail_mp11::mp_unique<encoder_types>>::value, "Duplicate encoder types in dispatch");
80 return dispatch_(std::forward<Fn>(fn)...);
81 }
82 };
83
84 template <class Encoder>

Callers 2

serializeFunction · 0.80
serializeFunction · 0.80

Calls

no outgoing calls

Tested by 2

serializeFunction · 0.64
serializeFunction · 0.64