do_return

Synopsis

template <class Value>
struct do_return
  // unspecified
;

Description

Template expression that can be used inside a do_ block. do_return evaluates return_<MonadTag, Value> using the MonadTag of the do block containing do_return.

#include <mpllibs/metamonad/do.hpp>

Example

using boost::mpl::int_;

using namespace mpllibs::metamonad::name;

do_<exception_tag>::apply<
  do_return<int_<13>>
>

[up]