Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69927 - in sandbox/assign_v2/boost/assign/v2/put/modifier: . repeat
From: erwann.rogard_at_[hidden]
Date: 2011-03-13 09:56:38


Author: e_r
Date: 2011-03-13 09:56:25 EDT (Sun, 13 Mar 2011)
New Revision: 69927
URL: http://svn.boost.org/trac/boost/changeset/69927

Log:
upd assign_v2
Text files modified:
   sandbox/assign_v2/boost/assign/v2/put/modifier/deduce.hpp | 14 +----
   sandbox/assign_v2/boost/assign/v2/put/modifier/insert.hpp | 1
   sandbox/assign_v2/boost/assign/v2/put/modifier/push.hpp | 1
   sandbox/assign_v2/boost/assign/v2/put/modifier/push_back.hpp | 3
   sandbox/assign_v2/boost/assign/v2/put/modifier/push_front.hpp | 1
   sandbox/assign_v2/boost/assign/v2/put/modifier/repeat.hpp | 75 +++++++++++++++++++++++++++++++++++
   sandbox/assign_v2/boost/assign/v2/put/modifier/repeat/impl.hpp | 82 ---------------------------------------
   sandbox/assign_v2/boost/assign/v2/put/modifier/repeat/tag.hpp | 27 ------------
   8 files changed, 80 insertions(+), 124 deletions(-)

Modified: sandbox/assign_v2/boost/assign/v2/put/modifier/deduce.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modifier/deduce.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modifier/deduce.hpp 2011-03-13 09:56:25 EDT (Sun, 13 Mar 2011)
@@ -9,21 +9,15 @@
 //////////////////////////////////////////////////////////////////////////////
 #ifndef BOOST_ASSIGN_V2_PUT_MODIFIER_DEDUCE_ER_2010_HPP
 #define BOOST_ASSIGN_V2_PUT_MODIFIER_DEDUCE_ER_2010_HPP
-#include <boost/assign/v2/put/modifier/insert/tag.hpp>
-#include <boost/assign/v2/put/modifier/iterate/tag.hpp>
-#include <boost/assign/v2/put/modifier/push/tag.hpp>
-#include <boost/assign/v2/put/modifier/push_back/tag.hpp>
-
-#include <boost/assign/v2/put/modifier/insert.hpp>
-#include <boost/assign/v2/put/modifier/iterate.hpp>
-#include <boost/assign/v2/put/modifier/push.hpp>
-#include <boost/assign/v2/put/modifier/push_back.hpp>
-
 #include <boost/assign/v2/detail/pp/ignore.hpp>
 #include <boost/assign/v2/detail/traits/container/has_push.hpp>
 #include <boost/assign/v2/detail/traits/container/is_associative.hpp>
 #include <boost/assign/v2/detail/traits/container/is_array.hpp>
 #include <boost/assign/v2/detail/traits/switch.hpp>
+#include <boost/assign/v2/put/modifier/insert.hpp>
+#include <boost/assign/v2/put/modifier/iterate.hpp>
+#include <boost/assign/v2/put/modifier/push.hpp>
+#include <boost/assign/v2/put/modifier/push_back.hpp>
 #include <boost/mpl/assert.hpp>
 #include <boost/preprocessor/cat.hpp>
 #include <boost/type_traits/is_same.hpp>

Modified: sandbox/assign_v2/boost/assign/v2/put/modifier/insert.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modifier/insert.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modifier/insert.hpp 2011-03-13 09:56:25 EDT (Sun, 13 Mar 2011)
@@ -12,7 +12,6 @@
 //[put_modifier_insert
 #include <boost/assign/v2/put/modifier/standard/modifier.hpp>
 BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_STANDARD_TAG(insert)
-#include <boost/assign/v2/put/modifier/insert/tag.hpp>
 BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_STANDARD(insert)
 //]
 

Modified: sandbox/assign_v2/boost/assign/v2/put/modifier/push.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modifier/push.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modifier/push.hpp 2011-03-13 09:56:25 EDT (Sun, 13 Mar 2011)
@@ -12,7 +12,6 @@
 //[put_modifier_push
 #include <boost/assign/v2/put/modifier/standard/modifier.hpp>
 BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_STANDARD_TAG(push)
-#include <boost/assign/v2/put/modifier/push/tag.hpp>
 BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_STANDARD(push)
 //]
 

Modified: sandbox/assign_v2/boost/assign/v2/put/modifier/push_back.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modifier/push_back.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modifier/push_back.hpp 2011-03-13 09:56:25 EDT (Sun, 13 Mar 2011)
@@ -10,9 +10,8 @@
 #ifndef BOOST_ASSIGN_V2_PUT_MODIFIER_PUSH_BACK_ER_2010_HPP
 #define BOOST_ASSIGN_V2_PUT_MODIFIER_PUSH_BACK_ER_2010_HPP
 //[put_modifier_push_back
-#include <boost/assign/v2/put/modifier/push_back/tag.hpp>
-BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_STANDARD_TAG(push_back)
 #include <boost/assign/v2/put/modifier/standard/modifier.hpp>
+BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_STANDARD_TAG(push_back)
 BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_STANDARD(push_back)
 //]
 #endif // BOOST_ASSIGN_V2_PUT_MODIFIER_PUSH_BACK_ER_2010_HPP

Modified: sandbox/assign_v2/boost/assign/v2/put/modifier/push_front.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modifier/push_front.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modifier/push_front.hpp 2011-03-13 09:56:25 EDT (Sun, 13 Mar 2011)
@@ -12,7 +12,6 @@
 //[put_modifier_push_front
 #include <boost/assign/v2/put/modifier/standard/modifier.hpp>
 BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_STANDARD_TAG(push_front)
-#include <boost/assign/v2/put/modifier/push_front/tag.hpp>
 BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_STANDARD(push_front)
 //]
 

Modified: sandbox/assign_v2/boost/assign/v2/put/modifier/repeat.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modifier/repeat.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modifier/repeat.hpp 2011-03-13 09:56:25 EDT (Sun, 13 Mar 2011)
@@ -9,11 +9,82 @@
 //////////////////////////////////////////////////////////////////////////////
 #ifndef BOOST_ASSIGN_V2_PUT_MODIFIER_REPEAT_ER_2010_HPP
 #define BOOST_ASSIGN_V2_PUT_MODIFIER_REPEAT_ER_2010_HPP
-#include <boost/assign/v2/put/modifier/repeat/impl.hpp>
+#include <cstddef>
+#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
+#if BOOST_ASSIGN_V2_ENABLE_CPP0X
+#include <utility>
+#include <boost/utility/enable_if.hpp>
+#include <boost/type_traits/is_reference.hpp>
+#endif
+#include <boost/assign/v2/put/adapter/modifier.hpp>
+
+namespace boost{
+namespace assign{
+namespace v2{
+namespace modifier_tag{
+
+ template<typename /*<<Arg is the modifier-tag of the implementation to override>>*/ Arg>
+ struct repeat{};
+
+}// modifier_tag
+namespace put_aux{
+
+ template<typename Arg>
+ class adapter_modifier<modifier_tag::repeat<Arg> >
+ {
+ typedef adapter_modifier<Arg> inner_type;
+
+ public:
+
+ typedef std::size_t size_type;
+
+ adapter_modifier() : n_( 0 ){}
+ explicit adapter_modifier( inner_type inner, size_type n )
+ : inner_( inner ), n_( n )
+ {}
+
+#if BOOST_ASSIGN_V2_ENABLE_CPP0X
+ template<typename C, typename T>
+ typename boost::disable_if<
+ boost::is_reference<T>,
+ void
+ >::type
+ impl(C& cont, T&& t )const
+ {
+ size_type m = this->size();\
+ while(m--) this->inner_.impl( cont, std::move( t ) /* TODO ? */ );
+ }
+
+#endif
+
+ template<typename C, typename T>
+ void impl(C& cont, T& t )const
+ {
+ size_type m = this->size();
+ while(m--) this->inner_.impl( cont, t );
+ }
+
+ template<typename C, typename T>
+ void impl(C& cont, T* t)const
+ {
+ size_type m = this->size();
+ while(m--) this->inner_.impl( cont, t );
+ }
+
+ size_type const& size()const{ return this->n_; }
+
+ protected:
+ inner_type inner_;
+ size_type n_;
+ };
+
+}// put_aux
+}// v2
+}// assign
+}// boost
 #include <boost/assign/v2/put/modifier/repeat/tag.hpp>
 #include <boost/assign/v2/put/modifier/modulo.hpp>
 BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_KEYWORD(repeat)
-
 #define BOOST_ASSIGN_V2_TAG modifier_tag::repeat<typename D::modifier_tag>
 BOOST_ASSIGN_V2_PUT_MODIFIER_MODULO_META_MODIFIER_TAG(repeat, BOOST_ASSIGN_V2_TAG)
 #undef BOOST_ASSIGN_V2_TAG

Modified: sandbox/assign_v2/boost/assign/v2/put/modifier/repeat/impl.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modifier/repeat/impl.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modifier/repeat/impl.hpp 2011-03-13 09:56:25 EDT (Sun, 13 Mar 2011)
@@ -1,81 +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_PUT_MODIFIER_REPEAT_IMPL_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_MODIFIER_REPEAT_IMPL_ER_2010_HPP
-#include <cstddef>
-#include <boost/assign/v2/detail/config/enable_cpp0x.hpp>
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
-#include <utility>
-#include <boost/utility/enable_if.hpp>
-#include <boost/type_traits/is_reference.hpp>
-#endif
-#include <boost/assign/v2/put/adapter/modifier.hpp>
-#include <boost/assign/v2/put/modifier/repeat/tag.hpp>
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace put_aux{
-
- template<typename Arg>
- class adapter_modifier<modifier_tag::repeat<Arg> >
- {
- typedef adapter_modifier<Arg> inner_type;
-
- public:
-
- typedef std::size_t size_type;
-
- adapter_modifier() : n_( 0 ){}
- explicit adapter_modifier( inner_type inner, size_type n )
- : inner_( inner ), n_( n )
- {}
-
-#if BOOST_ASSIGN_V2_ENABLE_CPP0X
- template<typename C, typename T>
- typename boost::disable_if<
- boost::is_reference<T>,
- void
- >::type
- impl(C& cont, T&& t )const
- {
- size_type m = this->size();\
- while(m--) this->inner_.impl( cont, std::move( t ) /* TODO ? */ );
- }
-
-#endif
-
- template<typename C, typename T>
- void impl(C& cont, T& t )const
- {
- size_type m = this->size();
- while(m--) this->inner_.impl( cont, t );
- }
-
- template<typename C, typename T>
- void impl(C& cont, T* t)const
- {
- size_type m = this->size();
- while(m--) this->inner_.impl( cont, t );
- }
-
- size_type const& size()const{ return this->n_; }
-
- protected:
- inner_type inner_;
- size_type n_;
- };
-
-}// put_aux
-}// v2
-}// assign
-}// boost
-
-#endif // BOOST_ASSIGN_V2_PUT_MODIFIER_REPEAT_IMPL_ER_2010_HPP
+// TODO remove file
\ No newline at end of file

Modified: sandbox/assign_v2/boost/assign/v2/put/modifier/repeat/tag.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/put/modifier/repeat/tag.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/put/modifier/repeat/tag.hpp 2011-03-13 09:56:25 EDT (Sun, 13 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) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef BOOST_ASSIGN_V2_PUT_MODIFIER_REPEAT_TAG_ER_2010_HPP
-#define BOOST_ASSIGN_V2_PUT_MODIFIER_REPEAT_TAG_ER_2010_HPP
-
-namespace boost{
-namespace assign{
-namespace v2{
-namespace modifier_tag{
-
- template<typename /*<<Arg is the modifier-tag of the implementation to override>>*/ Arg>
- struct repeat{};
-
-}// modifier_tag
-}// v2
-}// assign
-}// boost
-
-#endif // BOOST_ASSIGN_V2_PUT_MODIFIER_REPEAT_TAG_ER_2010_HPP
+// 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