| 140 | using FunctorType = typename TypeClassTrait<Functor, T>::Type; |
| 141 | |
| 142 | class Fmap |
| 143 | { |
| 144 | public: |
| 145 | template <typename Func, typename Data> |
| 146 | constexpr auto operator()(Func const& func, Data const& data) const |
| 147 | { |
| 148 | using FType = FunctorType<Data>; |
| 149 | return FType::fmap(func, data); |
| 150 | } |
| 151 | }; |
| 152 | |
| 153 | constexpr inline auto fmap = toGFunc<2>(Fmap{}); |
| 154 |
nothing calls this directly
no outgoing calls
no test coverage detected