MCPcopy Create free account
hub / github.com/BowenFu/hspp / Fmap

Class Fmap

develop/include/typeclass.h:142–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140using FunctorType = typename TypeClassTrait<Functor, T>::Type;
141
142class Fmap
143{
144public:
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
153constexpr inline auto fmap = toGFunc<2>(Fmap{});
154

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected