Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71799 - in sandbox/assign_v2/libs/assign/v2: doc test/put
From: erwann.rogard_at_[hidden]
Date: 2011-05-07 18:49:17


Author: e_r
Date: 2011-05-07 18:49:16 EDT (Sat, 07 May 2011)
New Revision: 71799
URL: http://svn.boost.org/trac/boost/changeset/71799

Log:
upd assign_v2
Text files modified:
   sandbox/assign_v2/libs/assign/v2/doc/put.qbk | 54 +++++++++++++++++++++++++++++++--------
   sandbox/assign_v2/libs/assign/v2/test/put/put.cpp | 4 +-
   2 files changed, 44 insertions(+), 14 deletions(-)

Modified: sandbox/assign_v2/libs/assign/v2/doc/put.qbk
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/doc/put.qbk (original)
+++ sandbox/assign_v2/libs/assign/v2/doc/put.qbk 2011-05-07 18:49:16 EDT (Sat, 07 May 2011)
@@ -35,6 +35,44 @@
                 [`__fun_csv_put__(__cont__, __kwd_option__ % __compose_options__, __args__)`]
                 [`( __fun_put__( __cont__ ) % __compose_options__ )( __arg__1 ) ...( __argn__ )`]
         ]
+]
+
+If `__cont__` is a map, `__fun_put__( __cont__ )`, in the above table, is internally replaced by `__fun_put__( __cont__ ) % ( __kwd_data__ = __kwd_value__ )`.
+
+[heading Example]
+
+[#ex_csv_put]
+
+[*Example1]
+[test_csv_put_keypad]
+[*Example2]
+[test_csv_put_bitset]
+[*Example3]
+[test_csv_put_ptr_map]
+[*Example4]
+[test_csv_put_multi_array]
+
+[endsect][/csv_put]
+[section:delay_csv_put Delay_csv_put]
+[#delay_csv_put]
+
+[heading Header]
+[@../../../../../boost/assign/v2/put/delay_csv_put.hpp [^boost/assign/v2/put/delay_csv_put.hpp]]
+
+[heading Description]
+Piping version of [link csv_put `__fun_csv_put__`]
+
+[heading Synopsis]
+[import ../../../../boost/assign/v2/put/delay_csv_put.hpp]
+[syntax_delay_csv_put]
+
+[heading Semantics]
+
+[table
+ [
+ [Expression]
+ [Description]
+ ]
         [
                 [`__cont__ | delay_csv_put( __range__ )`]
                 [`__fun_csv_put__( __cont__, __fun_as_arg_list__( __range__ ) ); return __cont__`]
@@ -49,22 +87,14 @@
 
 [heading Example]
 
-[#ex_csv_put]
+[#ex_delay_csv_put]
 
 [*Example1]
-[test_csv_put_cb]
+[test_delay_csv_put_unordered_set]
 [*Example2]
-[test_csv_put_keypad]
-[*Example3]
-[test_csv_put_bitset]
-[*Example4]
-[test_csv_put_unordered_set]
-[*Example5]
-[test_csv_put_ptr_map]
-[*Example6]
-[test_csv_put_multi_array]
+[test_delay_csv_put_cb]
 
-[endsect][/csv_put]
+[endsect][/delay_csv_put]
 [section:put Put]
 [#put]
 

Modified: sandbox/assign_v2/libs/assign/v2/test/put/put.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/put.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/put.cpp 2011-05-07 18:49:16 EDT (Sat, 07 May 2011)
@@ -150,7 +150,7 @@
         }
         //SET
         {
- //[test_csv_put_unordered_set
+ //[test_delay_csv_put_unordered_set
             typedef std::string word_;
             typedef boost::unordered_set<word_> C;
 
@@ -260,7 +260,7 @@
         }
         // OTHER
         {
- //[test_csv_put_cb
+ //[test_delay_csv_put_cb
             boost::circular_buffer<int> cb(3);
             as2::csv_put( cb, 1, 2, 3 );
 


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