template <class MonadTag, class S>
struct fail
{
// unspecified
};
fail
is a metafunction for the fail
operation of the monad typeclass.
#include <mpllibs/metamonad/fail.hpp>
For any monad_tag
tag and s
class:
fail<monad_tag, s>
is equivalent to
apply<monad<monad_tag>::fail, s>
struct one_error;
typedef fail<maybe_tag, one_error>::type this_is_nothing;
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