#include <functional>
#include <optional>
#include "typeclassutil.h"
#include "void.h"
#include "either.h"
Go to the source code of this file.
|
template<typename T > |
constexpr bool | LC::Util::detail::IsFunctorImpl (int, typename InstanceFunctor< T >::UndefinedTag *=nullptr) |
|
template<typename T > |
constexpr bool | LC::Util::detail::IsFunctorImpl (float) |
|
template<typename T > |
constexpr bool | LC::Util::IsFunctor () |
| Checks whether the given type has a Functor instance for it. More...
|
|
template<typename T , typename F , typename = std::enable_if_t<IsFunctor<T> ()>> |
FmapResult_t< T, F > | LC::Util::Fmap (const T &functor, const F &function) |
| Apply the function f to the elements in functor. More...
|
|
template<typename T , typename F > |
auto | LC::Util::operator* (const F &function, const T &functor) -> decltype(Fmap(functor, function)) |
| An operator-style alias for Fmap(). More...
|
|
template<typename T , typename F > |
auto | LC::Util::operator* (const T &functor, const F &function) -> decltype(Fmap(functor, function)) |
| An operator-style alias for Fmap(). More...
|
|