|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51382 - trunk/libs/fusion/example/performance
From: tschwinger_at_[hidden]
Date: 2009-02-22 01:35:35
Author: t_schwinger
Date: 2009-02-22 01:35:35 EST (Sun, 22 Feb 2009)
New Revision: 51382
URL: http://svn.boost.org/trac/boost/changeset/51382
Log:
updates functional module: only two unfused variants, now
Text files modified:
trunk/libs/fusion/example/performance/functional.cpp | 22 ++++++++++++----------
1 files changed, 12 insertions(+), 10 deletions(-)
Modified: trunk/libs/fusion/example/performance/functional.cpp
==============================================================================
--- trunk/libs/fusion/example/performance/functional.cpp (original)
+++ trunk/libs/fusion/example/performance/functional.cpp 2009-02-22 01:35:35 EST (Sun, 22 Feb 2009)
@@ -10,10 +10,12 @@
#include <boost/fusion/container/list.hpp>
#include <boost/fusion/container/vector.hpp>
#include <boost/fusion/algorithm/iteration/fold.hpp>
-#include <boost/fusion/functional/adapter/unfused_generic.hpp>
-#include <boost/fusion/functional/adapter/unfused_rvalue_args.hpp>
+#include <boost/fusion/functional/adapter/unfused.hpp>
#include <boost/fusion/functional/adapter/fused_function_object.hpp>
+#include <boost/functional/forward_adapter.hpp>
+#include <boost/functional/lightweight_forward_adapter.hpp>
+
#include <boost/utility/result_of.hpp>
#include <boost/config.hpp>
#include <boost/timer.hpp>
@@ -265,13 +267,13 @@
total += res;
}
{
- boost::fusion::unfused_rvalue_args<F> f;
- std::cout << "unfused_rvalue_args<F> " << call_unfused(f,res) << std::endl;
+ boost::lightweight_forward_adapter< boost::fusion::unfused<F> > f;
+ std::cout << "lightweight_forward_adapter< unfused<F> > " << call_unfused(f,res) << std::endl;
total += res;
}
{
- boost::fusion::unfused_generic<F> f;
- std::cout << "unfused_generic<F> " << call_unfused(f,res) << std::endl;
+ boost::forward_adapter< boost::fusion::unfused<F> > f;
+ std::cout << "forward_adapter< unfused<F> > " << call_unfused(f,res) << std::endl;
total += res;
}
std::cout << std::endl << "Fused adapters:" << std::endl;
@@ -291,13 +293,13 @@
total += res;
}
{
- boost::fusion::unfused_rvalue_args< boost::fusion::fused_function_object<U> > f;
- std::cout << "unfused_rvalue_args<fused_function_object<U> > " << call_unfused(f,res) << std::endl;
+ boost::lightweight_forward_adapter< boost::fusion::unfused< boost::fusion::fused_function_object<U> > > f;
+ std::cout << "lightweight_forward_adapter< unfused<fused_function_object<U> > >" << call_unfused(f,res) << std::endl;
total += res;
}
{
- boost::fusion::unfused_generic< boost::fusion::fused_function_object<U> > f;
- std::cout << "unfused_generic<fused_function_object<U> > " << call_unfused(f,res) << std::endl;
+ boost::forward_adapter< boost::fusion::unfused< boost::fusion::fused_function_object<U> > > f;
+ std::cout << "forward_adapter< unfused<fused_function_object<U> > > " << call_unfused(f,res) << std::endl;
total += res;
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk