return_

Synopsis

template <class MonadTag, class T>
struct return_
{
  // unspecified
};

Description

return_ is a metafunction for the return_ operation of the monad typeclass.

#include <mpllibs/metamonad/return_.hpp>

Expression semantics

For any monad_tag tag and t class

return_<monad_tag, t>

is equivalent to

apply<monad<monad_tag>::return_, t>

Example

typedef return_<exception_tag, int> lifted_int;

[up]