Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69764 - in sandbox/assign_v2/libs/assign/v2/test/put/pipe: . functor modulo
From: erwann.rogard_at_[hidden]
Date: 2011-03-09 08:02:58


Author: e_r
Date: 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
New Revision: 69764
URL: http://svn.boost.org/trac/boost/changeset/69764

Log:
upd assign_v2
Text files modified:
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor.cpp | 28 ---------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor.h | 26 --------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/operator.cpp | 119 ---------------------------------------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/operator.h | 26 --------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.cpp | 102 ---------------------------------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.h | 28 ---------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.cpp | 40 -------------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.h | 28 ---------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo.cpp | 27 --------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo.h | 26 --------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo/fun.cpp | 57 ------------------
   sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo/fun.h | 28 ---------
   12 files changed, 12 insertions(+), 523 deletions(-)

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor.cpp 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#include <libs/assign/v2/test/put/pipe/functor/rhs.h>
-#include <libs/assign/v2/test/put/pipe/functor/str_literal.h>
-#include <libs/assign/v2/test/put/pipe/functor.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_functor{
-
- void test(){
- xxx_rhs::test();
- xxx_str_literal::test();
- }
-
-}// xxx_functor
-}// xxx_pipe
-}// xxx_put
-}// xxx_test_assign
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor.h (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor.h 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,25 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_ASSIGN_V2_TEST_PUT_PIPE_FUNCTOR_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_PIPE_FUNCTOR_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_functor{
-
- void test();
-
-}// xxx_functor
-}// xxx_pipe
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/operator.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/operator.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/operator.cpp 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,118 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-//#include <map>
-#include <deque>
-#include <vector>
-#include <list>
-#include <string>
-#include <boost/array.hpp>
-#include <boost/tuple/tuple.hpp>
-#include <boost/numeric/conversion/bounds.hpp>
-#include <boost/assign/v2/detail/config/check.hpp>
-#include <boost/assign/v2/put/pipe/functor.hpp>
-#include <boost/assign/v2/put/pipe/csv.hpp>
-
-#include <libs/assign/v2/test/put/pipe/functor/operator.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_operator{
-
- void test(){
- namespace as2 = boost::assign::v2;
- {
- //pipe_str_literal
- typedef const char* T;
- std::deque<T> cont; typedef std::string str_;
- BOOST_ASSIGN_V2_CHECK( str_(
- ( cont | as2::_put( "x" )( "y" )( "z" ) )[0]
- ) == "x" );
- BOOST_ASSIGN_V2_CHECK( str_( cont[1] ) == "y" );
- BOOST_ASSIGN_V2_CHECK( str_( cont[2] ) == "z" );
- }
- {
- //[pipe_array
- const int sz = 3;
- typedef boost::array<int, sz> r_;
- boost::array<r_, sz> matrix3x3;
-
- {
- r_ r0, r1, r2;
- int front = ( /*Calls [^r0[i] = j] for [^( i, j ) = ( 0, 1 ), ( 1, 2 ), ( 2, 3 ) ] and returns r0*/ r0 | as2::_put( 1 )( 2 )( 3 ) ).front();
- int back = r0.back();
- r2 | as2::_put( 7 )( 8 )( 9 );
- r_ r = (
- matrix3x3 | as2::_put
- ( r0 )
- ( /*<<`r1` modified on the fly>>*/r1 | as2::_put( 4 )( 5 )( 6 ) )
- ( r2 )
- )[1];
-
- BOOST_ASSIGN_V2_CHECK( front == 1 );
- BOOST_ASSIGN_V2_CHECK( back == 3 );
- BOOST_ASSIGN_V2_CHECK( r == r1 );
- }
- for(int i = 0; i < 9; i++)
- {
- BOOST_ASSIGN_V2_CHECK( matrix3x3[ i / 3 ][ i % 3 ] == i + 1 );
- }
- //]
- }
- {
- //[pipe_seq_var_args
- typedef double elem_; typedef std::list<elem_> r_; typedef std::vector<r_> ragged_array_;
- r_ a, b; elem_ front, back;
- front = ( a | as2::_put( 0.71 )( 0.63 )( 0.85 ) ).front();
- back = a.back();
-
- ragged_array_ ragged_array;
- r_ r = (
- ragged_array | as2::_put
- ( a )
- ( /*<<`b` modified on the fly>>*/ b | as2::_put( 0.61 )( 0.69 )( 0.92 )( 0.55 ) )
- ( 1, -99.99 )
- ( )
- )[2];
-
- elem_ eps = boost::numeric::bounds<elem_>::smallest();
- BOOST_ASSIGN_V2_CHECK( abs( front - 0.71 ) < eps );
- BOOST_ASSIGN_V2_CHECK( abs( back - 0.85 ) < eps );
- BOOST_ASSIGN_V2_CHECK( abs( r.front() + 99.0 ) < eps );
- BOOST_ASSIGN_V2_CHECK( abs( r.back() + 99.0 ) < eps );
- //]
- BOOST_ASSIGN_V2_CHECK( ragged_array[0].size() == a.size() );
- BOOST_ASSIGN_V2_CHECK( ragged_array[1].size() == b.size() );
- BOOST_ASSIGN_V2_CHECK( ragged_array[2].size() == 1 );
- BOOST_ASSIGN_V2_CHECK( ragged_array[3].size() == 0 );
- }
- {
- using namespace boost;
- //[pipe_seq_ref_tuple
- typedef const char state_ [3]; state_ ct = "CT", nj = "NJ", ny = "NY";
- typedef int code_; typedef boost::tuple<state_/*<<Notice the reference>>*/&, code_> area_code_;
- std::deque< area_code_ > tri_state;
- area_code_ front = (
- tri_state | as2::_put( nj, 201 )( ct, 203 )( ny, 212 )( ny, 315 )( ny, 347 )( nj, 551 )
- ).front();
-
- BOOST_ASSIGN_V2_CHECK( get<0>( front ) == nj );
- BOOST_ASSIGN_V2_CHECK( get<1>( front ) == 201 );
- BOOST_ASSIGN_V2_CHECK( get<0>( tri_state.back() ) == nj );
- BOOST_ASSIGN_V2_CHECK( get<1>( tri_state.back() ) == 551 );
- //]
- }
-
- }// test()
-
-}// xxx_operator
-}// xxx_pipe
-}// xxx_put
-}// xxx_test_assign
\ No newline at end of file
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/operator.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/operator.h (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/operator.h 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,25 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_ASSIGN_V2_TEST_PUT_PIPE_OPERATOR_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_PIPE_OPERATOR_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_operator{
-
- void test();
-
-}// xxx_operator
-}// xxx_pipe
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.cpp 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,101 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#include <string>
-#include <boost/mpl/int.hpp>
-#include <boost/typeof/typeof.hpp>
-#include <boost/assign/v2/detail/check/equal_val.hpp>
-#include <boost/assign/v2/detail/check/equal_ref.hpp>
-#include <boost/assign/v2/put/modifier/repeat.hpp>
-#include <boost/assign/v2/put/pipe/functor.hpp>
-#include <boost/assign/v2/utility/csv.hpp>
-#include <libs/assign/v2/test/put/pipe/functor/rhs.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_functor{
-namespace xxx_rhs{
-
- void test()
- {
- namespace as2 = boost::assign::v2;
- typedef boost::mpl::int_<0> zero_;
- {
- typedef as2::put_pipe_aux::rhs<> rhs_;
- int x = -1;
- BOOST_AUTO( rhs, ( ( rhs_() % ( as2::_repeat = 3 ) )( x ) ) );
- int n = as2::ref::at<0>( rhs.par_list_cont() ).arg();
- BOOST_ASSIGN_V2_CHECK( n == 3 );
- }
- namespace chk = as2::check_aux;
- namespace aux_ = as2::put_pipe_aux;
- typedef chk::equal_ref r_;
- typedef chk::equal_val v_;
- {
-/* rvalue */
-#define A -10
-#define B 10
- /* lvalue */
- int a1 = -1, b1 = 0;
- typedef const int cint_;
- cint_ a = 4, b = 5;
-
- BOOST_AUTO(
- rhs,
- ( as2::_put
- ( a1, b1 )( a1, b )( a1, B )
- ( a, b1 )( a, b )( a, B )
- ( A, b1 )( A, b )( A, B )
- ( a1 )
- ( a )
- ( A )
- ()
- )
- );
-
- aux_::check_rhs<0, 0>( rhs, r_(), a1);
- aux_::check_rhs<0, 1>( rhs, r_(), b1);
- aux_::check_rhs<1, 0>( rhs, r_(), a1); aux_::check_rhs<1, 1>( rhs, r_(), b);
- aux_::check_rhs<2, 0>( rhs, r_(), a1); aux_::check_rhs<2, 1>( rhs, v_(), B);
-
- aux_::check_rhs<3, 0>( rhs, r_(), a ); aux_::check_rhs<3, 1>( rhs, r_(), b1);
- aux_::check_rhs<4, 0>( rhs, r_(), a ); aux_::check_rhs<4, 1>( rhs, r_(), b);
- aux_::check_rhs<5, 0>( rhs, r_(), a ); aux_::check_rhs<5, 1>( rhs, v_(), B);
-
- aux_::check_rhs<6, 0>( rhs, v_(), A); aux_::check_rhs<6, 1>( rhs, r_(), b1);
- aux_::check_rhs<7, 0>( rhs, v_(), A); aux_::check_rhs<7, 1>( rhs, r_(), b);
- aux_::check_rhs<8, 0>( rhs, v_(), A); aux_::check_rhs<8, 1>( rhs, v_(), B);
-
- aux_::check_rhs<9, 0>( rhs, r_(), a1);
- aux_::check_rhs<10, 0>( rhs, r_(), a);
- aux_::check_rhs<11, 0>( rhs, v_(), A);
-#undef A
-#undef B
- }
- {
- // str_literal
- BOOST_AUTO(rhs, as2::_put( "x" ) );
- typedef boost::mpl::int_<0> int_;
- typedef std::string str_;
- #if BOOST_ASSIGN_V2_ENABLE_CPP0X
- using namespace boost::assign::v2::ref;
- #else
- using namespace boost;
- #endif
- aux_::check_rhs<0, 0>( rhs, v_(), str_( "x" ) );
- }
- }
-
-
-}// xxx_rhs
-}// xxx_functor
-}// xxx_pipe
-}// xxx_put
-}// test_assign_v2
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.h (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/rhs.h 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_ASSIGN_V2_TEST_PUT_PIPE_FUNCTOR_RHS_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_PIPE_FUNCTOR_RHS_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_functor{
-namespace xxx_rhs{
-
- void test();
-
-}// xxx_rhs
-}// xxx_functor
-}// xxx_pipe
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.cpp 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,39 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#include <deque>
-#include <string>
-
-#include <boost/assign/v2/put/pipe/functor.hpp>
-#include <boost/assign/v2/detail/config/check.hpp>
-#include <libs/assign/v2/test/put/pipe/functor/str_literal.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_functor{
-namespace xxx_str_literal{
-
- void test()
- {
- namespace as2 = boost::assign::v2;
- typedef const char* T;
- std::deque<T> cont; typedef std::string str_;
- BOOST_ASSIGN_V2_CHECK( str_(
- ( cont | as2::_put( "x" )( "y" )( "z" ) )[0]
- ) == "x" );
- BOOST_ASSIGN_V2_CHECK( str_( cont[1] ) == "y" );
- BOOST_ASSIGN_V2_CHECK( str_( cont[2] ) == "z" );
- }
-
-}// xxx_str_literal
-}// xxx_functor
-}// xxx_pipe
-}// xxx_put
-}// test_assign_v2
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.h (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/functor/str_literal.h 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_ASSIGN_V2_TEST_PUT_PIPE_FUNCTOR_STR_LITERAL_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_PIPE_FUNCTOR_STD_LITERAL_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_functor{
-namespace xxx_str_literal{
-
- void test();
-
-}// xxx_str_literal
-}// xxx_functor
-}// xxx_pipe
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo.cpp 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,26 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#include <libs/assign/v2/test/put/pipe/modulo/fun.h>
-#include <libs/assign/v2/test/put/pipe/modulo.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_modulo{
-
- void test()
- {
- xxx_fun::test();
- }
-
-}// xxx_modulo
-}// xxx_pipe
-}// xxx_put
-}// xxx_test_assign
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo.h (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo.h 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,25 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_ASSIGN_V2_TEST_PUT_PIPE_MODULO_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_PIPE_MODULO_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_modulo{
-
- void test();
-
-}// xxx_modulo
-}// xxx_pipe
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo/fun.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo/fun.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo/fun.cpp 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,56 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#include <vector>
-#include <boost/spirit/home/phoenix.hpp>
-#include <boost/assign/v2/detail/config/check.hpp>
-#include <boost/assign/v2/put/modulo/fun.hpp>
-#include <boost/assign/v2/put/pipe/functor.hpp>
-#include <boost/assign/v2/put/pipe/csv.hpp>
-#include <libs/assign/v2/test/put/pipe/modulo/fun.h>
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_modulo{
-namespace xxx_fun{
-
- void test()
- {
- namespace as2 = boost::assign::v2;
- namespace lambda = boost::phoenix;
- {
- //[pipe_modulo_fun
- typedef int int_; std::vector<int_> incr_fact;
- int_ front = (
- incr_fact | ( as2::_put % ( as2::_fun = lambda::arg_names::arg1 + 1 ) )/*<<1!, 2!, 3!, 4!, 5!>>*/( 1 )( 2 )( 6 )( 24 )( 120 )
- ).front();
-
- BOOST_ASSIGN_V2_CHECK( front == 2 );
- BOOST_ASSIGN_V2_CHECK( incr_fact.back() == 121 );
- //]
- }
- {
- //[csv_pipe_modulo_fun
- typedef int int_; std::vector<int_> incr_fact;
- int_ front = (
- incr_fact | ( as2::_csv_put % ( as2::_fun = lambda::arg_names::arg1 + 1 ) )/*<<1!, 2!, 3!, 4!, 5!>>*/( 1, 2, 6, 24, 120 )
- ).front();
-
- BOOST_ASSIGN_V2_CHECK( front == 2 );
- BOOST_ASSIGN_V2_CHECK( incr_fact.back() == 121 );
- //]
- }
- }
-
-}// xxx_fun
-}// xxx_modulo
-}// xxx_pipe
-}// xxx_put
-}// test_assign_v2
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo/fun.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo/fun.h (original)
+++ sandbox/assign_v2/libs/assign/v2/test/put/pipe/modulo/fun.h 2011-03-09 08:02:56 EST (Wed, 09 Mar 2011)
@@ -1,27 +1 @@
-//////////////////////////////////////////////////////////////////////////////
-// Boost.Assign v2 //
-// //
-// Copyright (C) 2003-2004 Thorsten Ottosen //
-// Copyright (C) 2010 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_ASSIGN_V2_TEST_PUT_PIPE_MODULO_FUN_ER_2010_H
-#define LIBS_ASSIGN_V2_TEST_PUT_PIPE_MODULO_FUN_ER_2010_H
-
-namespace test_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-namespace xxx_modulo{
-namespace xxx_fun{
-
- void test();
-
-}// xxx_fun
-}// xxx_modulo
-}// xxx_pipe
-}// xxx_put
-}// xxx_test_assign
-
-#endif
+// TODO remove file
\ No newline at end of file


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