Boost logo

Boost-Commit :

From: tschwinger_at_[hidden]
Date: 2007-09-22 07:09:37


Author: t_schwinger
Date: 2007-09-22 07:09:35 EDT (Sat, 22 Sep 2007)
New Revision: 39474
URL: http://svn.boost.org/trac/boost/changeset/39474

Log:
adds concept examples

Text files modified:
   trunk/libs/fusion/doc/functional.qbk | 45 ++++++++++++++++++++++++++++++++++++++++
   1 files changed, 45 insertions(+), 0 deletions(-)

Modified: trunk/libs/fusion/doc/functional.qbk
==============================================================================
--- trunk/libs/fusion/doc/functional.qbk (original)
+++ trunk/libs/fusion/doc/functional.qbk 2007-09-22 07:09:35 EDT (Sat, 22 Sep 2007)
@@ -80,6 +80,19 @@
 * member (function or data) pointer types
 * all kinds of function objects
 
+[heading Examples]
+
+ & a_free_function
+ & a_class::a_static_member_function
+ & a_class::a_nonstatic_data_member
+ & a_class::a_nonstatic_member_function
+ std::less<int>()
+ // using namespace boost;
+ bind(std::less<int>(), _1, 5)
+ lambda::_1 += lambda::_2;
+ fusion::__make_fused_function_object__(std::less<int>())
+
+
 [endsect]
 
 
@@ -111,6 +124,16 @@
 * function pointer types
 * all kinds of function objects
 
+[heading Examples]
+
+ & a_free_function
+ & a_class::a_static_member_function
+ std::less<int>()
+ // using namespace boost;
+ bind(std::less<int>(), _1, 5)
+ lambda::_1 += lambda::_2;
+ fusion::__make_fused_function_object__(std::less<int>())
+
 [endsect]
 
 
@@ -147,6 +170,18 @@
 * __poly_func_obj__ types
 * member (function or data) pointer types
 
+[heading Examples]
+
+ & a_free_function
+ & a_class::a_static_member_function
+ & a_class::a_nonstatic_data_member
+ & a_class::a_nonstatic_member_function
+ std::less<int>()
+ // using namespace boost;
+ bind(std::less<int>(), _1, 5)
+ // Note: Boost.Lambda expressions don't work with __boost_result_of__
+ fusion::__make_fused_function_object__(std::less<int>())
+
 [endsect]
 
 
@@ -180,6 +215,16 @@
 * function objects of the Standard Library
 * all Fusion __functional_adapters__
 
+[heading Examples]
+
+ & a_free_function
+ & a_class::a_static_member_function
+ std::less<int>()
+ // using namespace boost;
+ bind(std::less<int>(), _1, 5)
+ // Note: Boost.Lambda expressions don't work with __boost_result_of__
+ fusion::__make_fused_function_object__(std::less<int>())
+
 [endsect]
 
 


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