returns

Synopsis

template <class T>
struct returns
{
  typedef T type;
};

Description

This metafunction returns its argument. It does not inherit from it, it is intended to be used for defining metafunctions where it is important to make sure that the metafunction needs to be evaluated to get the result.

#include <mpllibs/metamonad/returns.hpp>

Expression semantics

For any t type the following are equivalent:

t
returns<t>::type

Example

struct void_ : returns<void_> {};

[up]