Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69039 - in sandbox/assign_v2/libs/assign/v2/example: . put ref utility
From: erwann.rogard_at_[hidden]
Date: 2011-02-19 05:51:43


Author: e_r
Date: 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
New Revision: 69039
URL: http://svn.boost.org/trac/boost/changeset/69039

Log:
upd assign_v2
Text files modified:
   sandbox/assign_v2/libs/assign/v2/example/foo.cpp | 40 ---------
   sandbox/assign_v2/libs/assign/v2/example/foo.h | 36 --------
   sandbox/assign_v2/libs/assign/v2/example/include.h | 39 ---------
   sandbox/assign_v2/libs/assign/v2/example/put.cpp | 27 ------
   sandbox/assign_v2/libs/assign/v2/example/put.h | 23 -----
   sandbox/assign_v2/libs/assign/v2/example/put/deque.cpp | 64 ----------------
   sandbox/assign_v2/libs/assign/v2/example/put/deque.h | 25 ------
   sandbox/assign_v2/libs/assign/v2/example/put/pipe.cpp | 157 ---------------------------------------
   sandbox/assign_v2/libs/assign/v2/example/put/pipe.h | 25 ------
   sandbox/assign_v2/libs/assign/v2/example/put/range.cpp | 46 -----------
   sandbox/assign_v2/libs/assign/v2/example/put/range.h | 25 ------
   sandbox/assign_v2/libs/assign/v2/example/ref.cpp | 23 -----
   sandbox/assign_v2/libs/assign/v2/example/ref.h | 23 -----
   sandbox/assign_v2/libs/assign/v2/example/ref/array.cpp | 81 --------------------
   sandbox/assign_v2/libs/assign/v2/example/ref/array.h | 25 ------
   sandbox/assign_v2/libs/assign/v2/example/utility.cpp | 29 -------
   sandbox/assign_v2/libs/assign/v2/example/utility.h | 23 -----
   sandbox/assign_v2/libs/assign/v2/example/utility/chain.cpp | 63 ---------------
   sandbox/assign_v2/libs/assign/v2/example/utility/chain.h | 25 ------
   sandbox/assign_v2/libs/assign/v2/example/utility/convert.cpp | 43 ----------
   sandbox/assign_v2/libs/assign/v2/example/utility/convert.h | 25 ------
   sandbox/assign_v2/libs/assign/v2/example/utility/sub_range.cpp | 39 ---------
   sandbox/assign_v2/libs/assign/v2/example/utility/sub_range.h | 25 ------
   23 files changed, 23 insertions(+), 908 deletions(-)

Modified: sandbox/assign_v2/libs/assign/v2/example/foo.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/foo.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/foo.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 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 <libs/assign/v2/example/foo.h>
-
-namespace example_assign_v2{
-
-Foo::Foo() : ptr_a( 0 ), b( 0 ){}
-Foo::Foo( int& a) : ptr_a( &a ), b( 0 ){}
-Foo::Foo( int& a, int const& b_) : ptr_a( &a ), b( b_ ){}
-
-bool Foo::operator==(Foo const& other)const
-{
- return (this->ptr_a == other.ptr_a) && (this->b == other.b);
-}
-
-Foo& Foo::operator+=(int const& delta){
- this->b += delta; return (*this);
-}
-
-std::ostream& operator<<( std::ostream& os, Foo const& t)
-{
- os << '(';
- if(t.ptr_a){
- os << *t.ptr_a;
- }else{
- os << "NULL";
- }
- return os << ',' << t.b << ')';
-}
-
-}// example_assign_v2
-
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/foo.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/foo.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/foo.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,35 +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 BOOST_ASSIGN_V2_EXAMPLE_FOO_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_FOO_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-
-class Foo
-{
- public:
- Foo(); //:ptr_a( 0 ), b( 0 ){}
- Foo( int& a); // : ptr_a( &a ), b( 0 ){}
- Foo( int& a, int const& b_); //: ptr_a( &a ), b( b_ ){}
-
- bool operator==(Foo const& other)const;
-
- Foo& operator+=(int const& delta);
-
- private:
- friend std::ostream & operator<<(std::ostream &os, const Foo& p);
- int* ptr_a;
- int b;
-};
-
-}// example_assign_v2
-
-#endif
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/include.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/include.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/include.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,38 +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 BOOST_ASSIGN_V2_EXAMPLE_INCLUDE_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_INCLUDE_ER_2010_H
-
-// Exlc. from markup bec. already included in section Getting started
-//#include <boost/assign/v2.hpp>
-
-//[include_statements
-#include <iostream>
-#include <utility> // std::pair
-#include <boost/assert.hpp>
-#include <boost/lambda/lambda.hpp>
-#include <boost/range/algorithm.hpp>
-//]
-
-namespace boost{
-namespace assign{
-namespace v2 {
-
-}
-}
-}
-
-
-//[ns
-namespace as2 = boost::assign::v2;
-namespace bl = boost::lambda;
-//]
-
-#endif
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/put.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/put.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/put.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 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/example/put/deque.h>
-#include <libs/assign/v2/example/put/range.h>
-#include <libs/assign/v2/example/put/pipe.h>
-#include <libs/assign/v2/example/put.h>
-
-namespace example_assign_v2{
-namespace xxx_put{
-
- void run(std::ostream& os){
- os << "** xxx_put" << std::endl;
- xxx_deque::run( os );
- xxx_range::run( os );
- xxx_pipe::run( os );
- }
-
-}// xxx_put
-}// example_assign_v2
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/put.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/put.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/put.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,22 +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 BOOST_ASSIGN_V2_EXAMPLE_PUT_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_PUT_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_put{
-
- void run(std::ostream& os);
-
-}// xxx_put
-}// example_assign_v2
-
-#endif
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/put/deque.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/put/deque.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/put/deque.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,63 +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 <assert.h>
-#include <boost/assign/v2/put/deque.hpp>
-#include <boost/assign/v2/put/std/push_front.hpp>
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/put/deque.h>
-
-namespace example_assign_v2{
-namespace xxx_put{
-namespace xxx_deque{
-
- void run(std::ostream& os)
- {
- os << "* xxx_deque " << std::endl;
- {
- //[csv_deque
- boost::for_each(
- as2::csv_deque<std::string>("x", "y", "z" ),
- os << bl::_1 << ' '
- ); // outputs x, y, z
- //]
- os << std::endl;
- {
- assert( as2::deque<Foo>().size() == 1 );
- }
- {
- //[deque
- int x = 0, a = 1;
- boost::for_each(
- as2::deque<Foo>( x )()( a, -1 ),
- os << bl::_1 << ' '
- );
- // outputs (0,0)(NULL,0)(1,-1)
- //]
- os << std::endl;
- }
- {
- //[deque_front
- boost::for_each(
- (
- as2::deque<int>( as2::_nil ) % as2::_push_front
- )( -1 )( 0 )( 1 ),
- os << bl::_1 << ' '
- );// outputs 1 0 -1
- //]
- os << std::endl;
- }
- }
- }
-
-}// xxx_deque
-}// xxx_put
-}// example_assign_v2
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/put/deque.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/put/deque.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/put/deque.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,24 +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 BOOST_ASSIGN_V2_EXAMPLE_ANON_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_ANON_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_put{
-namespace xxx_deque{
-
- void run(std::ostream& os);
-
-}// xxx_put
-}// xxx_deque
-}// example_assign_v2
-
-#endif
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/put/pipe.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/put/pipe.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/put/pipe.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,156 +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 <deque>
-#include <list>
-#include <map>
-#include <string>
-
-#include <boost/array.hpp>
-#include <boost/lambda/lambda.hpp>
-#include <boost/ptr_container/ptr_vector.hpp>
-
-#include <boost/assign/v2/put/pipe/csv.hpp>
-#include <boost/assign/v2/put/pipe/functor.hpp>
-
-#include <libs/assign/v2/example/include.h>
-
-namespace example_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-
- void run(std::ostream& os)
- {
- os << "* xxx_pipe " << std::endl;
- namespace as2 = ::boost::assign::v2;
- namespace bl = ::boost::lambda;
- {
- //[vector
- std::vector<int> cont;
- boost::for_each(
- cont | as2::_csv_put( -1, 0, 1 ),
- os << bl::_1 << ' '
- ); //outputs -1 0 1
- //]
- os << std::endl;
- }
- {
- // std::string may be replaced by const char* in GCC not MSVC or
- // else runtime error. I guess it would work w. a custom comparison
- // functor
-
- //[map
- typedef std::map<std::string, int> cont_;
- typedef cont_::value_type type;
- cont_ cont;
- assert(
- (
- cont | as2::_csv_put(
- type("x", -1),
- type("y", 0),
- type("z", 1)
- )
- )["y"] == 0
- );
- //]
- }
- {
- //[map2
- std::map<std::string, int> cont;
- assert(
- (
- cont | as2::_put("z", 1)("x", -1)("y", 0)
- )["y"] == 0
- );
- //]
- }
- {
- //[array
- boost::array<int,3> cont;
- boost::for_each(
- cont | as2::_csv_put( -1, 0, 1 ),
- os << bl::_1 << ' '
- ); // outputs -1 0 1
- //]
- os << std::endl;
- }
- {
- //[ptr_vector
- boost::ptr_vector<int> cont;
- boost::for_each(
- cont | as2::_csv_put( -1, 0, 1 ),
- os << bl::_1 << ' '
- ); // output -1 0 1
- //]
- os << std::endl;
- }
- {
- //[list
- std::list<int> cont;
- boost::for_each(
- cont | (
- as2::_csv_put % as2::_push_front
- )( -1, 0, 1 ),
- os << bl::_1 << ' '
- ); // outputs 1 0 -1
- //]
- os << std::endl;
- }
- {
- //[fun
- std::vector<int> cont;
- boost::for_each(
- cont | (
- as2::_csv_put % (
- as2::_fun = (2 * bl::_1)
- )
- )( -1, 0, 1 ),
- os << bl::_1 << ' '
- ); // outputs -2 0 2
- //]
- os << std::endl;
- }
- {
- //[repeat
- std::vector<int> cont;
- boost::for_each(
- cont | (
- as2::_csv_put % ( as2::_repeat = 2 )
- )( -1, 0, 1 ),
- os << bl::_1 << ' '
- ); // outputs -1 -1 0 0 1 1
- //]
- os << std::endl;
- }
- {
- //[lookup
- std::map<std::string, int> cont;
- cont["x"] = -1; cont["y"] = 0; cont["z"] = 1;
- cont | (
- as2::_csv_put % ( as2::_lookup = ( bl::_1 +=2 ) )
- )( "z", "x", "y" );
- assert( cont["y"] == 2 );
- //]
- }
- {
- //[iterate
- boost::array<int, 3> cont; cont[0] = -1;
- boost::for_each(
- cont | ( as2::_csv_put % ( as2::_iterate = 1 ) )( 0, 1 ),
- os << bl::_1 << ' '
- ); // outputs -1 0 1
- //]
- os << std::endl;
- }
- }
-
-}// xxx_pipe
-}// xxx_put
-}// example_assign_v2
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/example/put/pipe.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/put/pipe.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/put/pipe.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,24 +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 BOOST_ASSIGN_V2_EXAMPLE_PUT_PIPE_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_PUT_PIPE_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_put{
-namespace xxx_pipe{
-
- void run(std::ostream& os);
-
-}// xxx_pipe
-}// xxx_put
-}// example_assign_v2
-
-#endif
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/put/range.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/put/range.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/put/range.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,45 +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 <queue>
-#include <vector>
-#include <boost/array.hpp>
-#include <boost/assign/v2/put/pipe/range.hpp>
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/put/range.h>
-
-namespace example_assign_v2{
-namespace xxx_put{
-namespace xxx_range{
-
- void run(std::ostream& os)
- {
- {
- //[put_range_queue
- std::vector<int> v( 3 ); v[0] = -1; v[1] = 0; v[2] = 1;
- std::queue<int> fifo;
- assert( ( fifo | as2::_put_range( v ) ).front() == -1 );
- assert( fifo.back() == 1 );
- //]
- }
- {
- //[put_range_array
- typedef boost::array<int, 2> cont_;
- std::vector<int> v(2); v[0] = 1; v[1] = -99;
- assert(
- (boost::type<cont_>() | as2::_put_range( v ) )[1] == -99
- );
- //]
- }
- }
-
-}// xxx_range
-}// xxx_put
-}// example_assign_v2
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/put/range.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/put/range.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/put/range.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,24 +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 BOOST_ASSIGN_V2_EXAMPLE_PUT_RANGE_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_PUT_RANGE_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_put{
-namespace xxx_range{
-
- void run(std::ostream& os);
-
-}// xxx_range
-}// xxx_put
-}// example_assign_v2
-
-#endif
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/ref.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/ref.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/ref.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,22 +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/example/ref/array.h>
-#include <libs/assign/v2/example/ref.h>
-
-namespace example_assign_v2{
-namespace xxx_ref{
-
- void run(std::ostream& os){
- os << "** xxx_ref" << std::endl;
- xxx_array::run( os );
- }
-
-}// xxx_ref
-}// example_assign_v2
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/example/ref.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/ref.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/ref.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,22 +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 BOOST_ASSIGN_V2_EXAMPLE_REF_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_REF_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_ref{
-
- void run(std::ostream& os);
-
-}// xxx_ref
-}// example_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/example/ref/array.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/ref/array.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/ref/array.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,80 +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/assign/v2/ref/wrapper/get.hpp>
-#include <boost/assign/v2/ref/array/csv.hpp>
-#include <boost/assign/v2/ref/array/functor.hpp>
-#include <boost/range/algorithm/for_each.hpp>
-
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/ref/array.h>
-
-namespace example_assign_v2{
-namespace xxx_ref{
-namespace xxx_array{
-
- void run(std::ostream& os)
- {
-
- namespace as2 = boost::assign::v2;
- namespace bl = boost::lambda;
-
- os << "* xxx_array " << std::endl;
-
- {
- //[csv_array_r
- boost::for_each(
- as2::ref::csv_array( "x", "y", "z" ),
- os << bl::_1 << ' '
- ); //outputs x y z
- //]
- os << std::endl;
- //[csv_array_w
- std::string x, y, z;
- as2::ref::csv_array( x, y, z ).assign( "w" );
- assert( y == "w" );
- //]
- //[csv_array_empty
- as2::ref::csv_array<int const>( as2::_nil );
- //]
- }
- {
- //[csv_array_w2
- std::vector<int> v( 3 ); v[0] = -1; v[1] = 0; v[2] = 1;
- int x, y, z;
- boost::copy(
- v,
- boost::begin(
- as2::ref::csv_array( x, y, z )
- | as2::ref::_get
- )
- );
- assert( x == -1 );
- assert( z == 1 );
- //]
-
- }
- {
- //[array_r
- boost::for_each(
- as2::ref::array( -1 )( 0 )( 1 ),
- os << bl::_1 << ' '
- ); // outputs -1 0 1
- //]
- os << std::endl;
- }
-
- }
-
-}// xxx_array
-}// xxx_ref
-}// example_assign_v2
-
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/example/ref/array.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/ref/array.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/ref/array.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,24 +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 BOOST_ASSIGN_V2_EXAMPLE_REF_ARRAY_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_REF_ARRAY_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_ref{
-namespace xxx_array{
-
- void run(std::ostream& os);
-
-}// xxx_array
-}// xxx_ref
-}// example_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/example/utility.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/utility.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/utility.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,28 +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/example/utility/chain.h>
-#include <libs/assign/v2/example/utility/convert.h>
-#include <libs/assign/v2/example/utility/sub_range.h>
-#include <libs/assign/v2/example/utility.h>
-
-namespace example_assign_v2{
-namespace xxx_utility{
-
- void run(std::ostream& os)
- {
- os << "** xxx_utility" << std::endl;
- xxx_chain::run( os );
- xxx_convert::run( os );
- xxx_sub_range::run( os );
- }
-
-}// xxx_utility
-}// example_assign_v2
-
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/utility.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/utility.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/utility.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,22 +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 BOOST_ASSIGN_V2_EXAMPLE_MISC_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_MISC_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_utility{
-
- void run(std::ostream& os);
-
-}// xxx_utility
-}// example_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/example/utility/chain.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/utility/chain.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/utility/chain.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,62 +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 <list>
-#include <boost/array.hpp>
-#include <boost/assign/v2/utility/chain.hpp>
-#include <boost/assign/v2/ref/array.hpp>
-#include <boost/assign/v2/ref/wrapper/adaptor_get.hpp>
-#include <boost/assign/v2/put/deque.hpp>
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/utility/chain.h>
-
-namespace example_assign_v2{
-namespace xxx_utility{
-namespace xxx_chain{
-
- void run(std::ostream& os)
- {
- os << "* xxx_chain" << std::endl;
- {
- //[chain_r
- boost::array<int, 2> ar; ar[0] = 0; ar[1] = 1;
- std::list<int> list( 1, 2 );
- std::vector<int> vec( 2 ); vec[0] = 3; vec[1] = 4;
- boost::for_each(
- ar | as2::_chain( list ) | as2::_chain( vec ),
- os << bl::_1 << ' '
- ); // outputs 0, 1, 2, 3, 4
- //]
- os << std::endl;
- }
- {
- //[chain_w
- std::vector<int> v( 3 ); v[0] = -1; v[1] = 0; v[2] = 1;
- boost::array<int, 2> ar; int z;
- boost::copy(
- v,
- boost::begin(
- ar /* lvalue */ | as2::_chain(
- as2::ref::csv_array(
- z /* lvalue */
- ) /* rvalue */ | as2::ref::_get
- )
- )
- );
- assert( ar[0] == -1 );
- assert( ar[1] == 0 );
- assert( z == 1 );
- //]
- }
- }
-
-}// xxx_chain
-}// xxx_utility
-}// example_assign_v2
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/example/utility/chain.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/utility/chain.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/utility/chain.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,24 +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 BOOST_ASSIGN_V2_EXAMPLE_MISC_CHAIN_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_MISC_CHAIN_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_utility{
-namespace xxx_chain{
-
- void run(std::ostream& os);
-
-}// xxx_chain
-}// xxx_utility
-}// example_assign_v2
-
-#endif
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/example/utility/convert.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/utility/convert.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/utility/convert.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,42 +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 <stack>
-#include <boost/array.hpp>
-#include <boost/assign/v2/utility/convert.hpp>
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/foo.h>
-#include <libs/assign/v2/example/utility/convert.h>
-
-namespace example_assign_v2{
-namespace xxx_utility{
-namespace xxx_convert{
-
- void run(std::ostream& os)
- {
- {
- //[convert_stack
- std::vector<int> v( 3 ); v[0] = -1; v[1] = 0; v[2] = 1;
- std::stack<int> lifo = as2::converter( v );
- assert( lifo.top() == 1 );
- //]
- }
- {
- //[convert_array
- std::vector<int> v( 3 ); v[0] = -1; v[1] = 99; v[2] = 1;
- typedef boost::array<int, 3> ar_;
- assert( ( as2::converter( v ).type<ar_>() )[1] == 99 );
- //]
- }
- }
-
-}// xxx_convert
-}// xxx_utility
-}// example_assign_v2
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/utility/convert.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/utility/convert.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/utility/convert.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,24 +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 BOOST_ASSIGN_V2_EXAMPLE_MISC_CONVERT_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_MISC_CONVERT_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_utility{
-namespace xxx_convert{
-
- void run(std::ostream& os);
-
-}// xxx_convert
-}// xxx_utility
-}// example_assign_v2
-
-#endif
+// TODO remove file

Modified: sandbox/assign_v2/libs/assign/v2/example/utility/sub_range.cpp
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/utility/sub_range.cpp (original)
+++ sandbox/assign_v2/libs/assign/v2/example/utility/sub_range.cpp 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,38 +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/assign/v2/put/deque.hpp>
-#include <boost/assign/v2/ref/array.hpp>
-#include <boost/assign/v2/utility/sub_range.hpp>
-#include <libs/assign/v2/example/include.h>
-#include <libs/assign/v2/example/utility/sub_range.h>
-
-namespace example_assign_v2{
-namespace xxx_utility{
-namespace xxx_sub_range{
-
- void run(std::ostream& os)
- {
- os << "* sub_range" << std::endl;
- //[sub_range1
- std::vector<int> v(3, -1); v[2] = 1;
- assert( as2::sub_range( v ) < as2::csv_deque( -1, 0, 1 ) );
- //]
- //[sub_range2
- os << as2::sub_range(
- as2::ref::csv_array( "x", "y", "z" )
- ); //outputs xyz
- //]
- os << std::endl;
- }
-
-}// xxx_sub_range
-}// xxx_utility
-}// example_assign_v2
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/libs/assign/v2/example/utility/sub_range.h
==============================================================================
--- sandbox/assign_v2/libs/assign/v2/example/utility/sub_range.h (original)
+++ sandbox/assign_v2/libs/assign/v2/example/utility/sub_range.h 2011-02-19 05:51:37 EST (Sat, 19 Feb 2011)
@@ -1,24 +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 BOOST_ASSIGN_V2_EXAMPLE_MISC_SUB_RANGE_ER_2010_H
-#define BOOST_ASSIGN_V2_EXAMPLE_MISC_SUB_RANGE_ER_2010_H
-#include <ostream>
-
-namespace example_assign_v2{
-namespace xxx_utility{
-namespace xxx_sub_range{
-
- void run(std::ostream& os);
-
-}// xxx_sub_range
-}// xxx_utility
-}// example_assign_v2
-
-#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