template <class T>
struct returns
{
typedef T type;
};
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>
For any t
type the following are equivalent:
t
returns<t>::type
struct void_ : returns<void_> {};
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