template <class MonadTag, class A, class B>
struct bind_
{
// unspecified
};
bind_
is a metafunction for the bind_
operation of the monad typeclass.
#include <mpllibs/metamonad/bind_.hpp>
For any monad_tag
tag and a
, b
classes:
bind_<monad_tag, a, b>
is equivalent to
apply<monad<monad_tag>::bind_, a, b>
struct one_error;
struct other_error;
typedef
bind_<
exception_tag,
exception<one_error>,
exception<other_error>
>::type
exception_one_error;
Copyright Abel Sinkovics (abel at elte dot hu) 2011. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt