Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template result_of.

#include <boost/tr1/functional.hpp>

or

#include <functional>

The class template result_of helps determine the type of a call expression. Given an lvalue f of type F and lvalues t1, t2, ..., tN of types T1, T2, ..., TN, respectively, the type result_of<F(T1, T2, ..., TN)>::type defines the result type of the expression f(t1, t2, ...,tN). The implementation permits the type F to be a function pointer, function reference, member function pointer, or class type. For more information refer to the Boost.Utility documentation.

namespace std {
namespace tr1 {

template <class T>
struct result_of
{
   typedef unspecified type;
};

} // namespace tr1
} // namespace std

Configuration: Boost.Config should (automatically) define the macro BOOST_HAS_TR1_RESULT_OF if your standard library implements this part of TR1.

Standard Conformity: No known problems.


PrevUpHomeNext