32 #include <boost/optional.hpp> 38 template<
typename Applicative>
41 template<
typename AF,
typename AV>
44 template<
template<
typename...>
class Applicative,
typename... Args,
typename T>
50 template<
typename Applicative,
typename T>
56 template<
typename AF,
typename AV>
62 template<
typename AF,
typename AV>
63 auto operator* (
const AF& af,
const AV& av) -> decltype (
GSL (af, av))
78 struct GSLResult<
boost::optional<V>>
80 using Type_t = boost::optional<std::result_of_t<T (V)>>;
84 static boost::optional<U>
Pure (
const U& v)
constexpr detail::ExprTree< detail::ExprType::LeafStaticPlaceholder, detail::MemberPtrs< Ptr > > f
auto operator*(const AF &af, const AV &av) -> decltype(GSL(af, av))
GSLResult_t< AF, AV > GSL(const AF &af, const AV &av)
boost::optional< std::result_of_t< T(V)> > Type_t
static boost::optional< U > Pure(const U &v)
typename InstanceApplicative< AF >::template GSLResult< AV >::Type_t GSLResult_t
auto Pure(const T &v) -> decltype(InstanceApplicative< Applicative >::Pure(v))
boost::optional< T > Type_t
static GSLResult_t< Type_t, AV > GSL(const Type_t &f, const AV &v)