$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-03-15 08:41:45
Ian McCulloch wrote:
> I'm sure this has been asked before, but searching the archives I
> cannot find anything. Is there some tutorial material on result_of
> anywhere? The boost documentation simply points to n1454, which
> doesn't contain much in the way of examples, and the TR1 document
> (n1647) which has no examples at all.
Mini-result_of-tutorial:
Q: What do I write in the space marked ??? below:
template<class F, class A1, ..., class An> ??? apply( F f, A1 & a1, ..., An
& an )
{
return f( a1, ..., an );
}
A:
typename result_of<F(A1&, ..., An&)>::type.