|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r68106 - in sandbox/statistics/support/libs/assign/v2: example/put example/ref src test/put/pipe
From: erwann.rogard_at_[hidden]
Date: 2011-01-13 11:23:10
Author: e_r
Date: 2011-01-13 11:23:09 EST (Thu, 13 Jan 2011)
New Revision: 68106
URL: http://svn.boost.org/trac/boost/changeset/68106
Log:
libs/assign/v2
Text files modified:
sandbox/statistics/support/libs/assign/v2/example/put/pipe.cpp | 7 -------
sandbox/statistics/support/libs/assign/v2/example/ref/array.cpp | 6 +++---
sandbox/statistics/support/libs/assign/v2/src/main.cpp | 4 ++--
sandbox/statistics/support/libs/assign/v2/test/put/pipe/ext.cpp | 3 ---
4 files changed, 5 insertions(+), 15 deletions(-)
Modified: sandbox/statistics/support/libs/assign/v2/example/put/pipe.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/put/pipe.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/put/pipe.cpp 2011-01-13 11:23:09 EST (Thu, 13 Jan 2011)
@@ -102,12 +102,6 @@
{
//[fun
std::vector<int> cont;
- cont | (
- as2::_csv_put % (
- as2::_fun = (2 * bl::_1)
- )
- )( -1, 0, 1 );
-/*
boost::for_each(
cont | (
as2::_csv_put % (
@@ -116,7 +110,6 @@
)( -1, 0, 1 ),
os << bl::_1 << ' '
); // outputs -2 0 2
-*/
//]
os << std::endl;
}
Modified: sandbox/statistics/support/libs/assign/v2/example/ref/array.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/example/ref/array.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/example/ref/array.cpp 2011-01-13 11:23:09 EST (Thu, 13 Jan 2011)
@@ -51,10 +51,10 @@
std::vector<int> v( 3 ); v[0] = -1; v[1] = 0; v[2] = 1;
int x, y, z;
boost::copy(
- v,
+ v,
boost::begin(
- as2::ref::csv_array( x, y, z )
- | as2::ref::_get
+ as2::ref::csv_array( x, y, z )
+ | as2::ref::_get
)
);
assert( x == -1 );
Modified: sandbox/statistics/support/libs/assign/v2/src/main.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/src/main.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/src/main.cpp 2011-01-13 11:23:09 EST (Thu, 13 Jan 2011)
@@ -27,8 +27,8 @@
}
{
using namespace example_assign_v2;
-// xxx_ref::run(std::cout);
-// xxx_put::run(std::cout);
+ xxx_ref::run(std::cout);
+ xxx_put::run(std::cout);
xxx_utility::run(std::cout);
}
return 0;
Modified: sandbox/statistics/support/libs/assign/v2/test/put/pipe/ext.cpp
==============================================================================
--- sandbox/statistics/support/libs/assign/v2/test/put/pipe/ext.cpp (original)
+++ sandbox/statistics/support/libs/assign/v2/test/put/pipe/ext.cpp 2011-01-13 11:23:09 EST (Thu, 13 Jan 2011)
@@ -32,20 +32,17 @@
namespace as2 = boost::assign::v2;
namespace bl = boost::lambda;
{
- //[lookup
std::map<const char*,int> cont;
cont["x"] = -1; cont["y"] = 0; cont["z"] = 1;
cont | (
as2::_csv_put % ( as2::_lookup = ( bl::_1 +=2 ) )
)( "z", "x", "y" );
- //]
BOOST_ASSIGN_V2_CHECK( cont["y"] == 2 );
BOOST_ASSIGN_V2_CHECK( cont["x"] == 1 );
BOOST_ASSIGN_V2_CHECK( cont["z"] == 3 );
}
typedef std::string str_;
{
- //[lookup2
std::deque<const char*> cont;
cont | as2::_put( "x" )( "y" )( "z" );
//]
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