Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70510 - in sandbox/assign_v2/boost/assign/v2: . ref/array
From: erwann.rogard_at_[hidden]
Date: 2011-03-24 14:12:08


Author: e_r
Date: 2011-03-24 14:12:07 EDT (Thu, 24 Mar 2011)
New Revision: 70510
URL: http://svn.boost.org/trac/boost/changeset/70510

Log:
upd assign_v2
Removed:
   sandbox/assign_v2/boost/assign/v2/utility.hpp
Text files modified:
   sandbox/assign_v2/boost/assign/v2/ref/array/array.hpp | 17 ++++++++++++-----
   sandbox/assign_v2/boost/assign/v2/ref/array/as_arg_list.hpp | 20 +++++---------------
   sandbox/assign_v2/boost/assign/v2/ref/array/csv_array.hpp | 7 +++++--
   sandbox/assign_v2/boost/assign/v2/ref/array/get.hpp | 9 +++++----
   4 files changed, 27 insertions(+), 26 deletions(-)

Modified: sandbox/assign_v2/boost/assign/v2/ref/array/array.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/array.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/array.hpp 2011-03-24 14:12:07 EDT (Thu, 24 Mar 2011)
@@ -40,8 +40,11 @@
 //->
 namespace nth_result_of{
 
- template<array_size_type N, typename /*<<U& has to be a reference>>*/U>
- struct /*<<Metafunction>>*/array/*<-*/
+ template<
+ array_size_type N
+ , typename U // U& has to be a reference
+ >
+ struct array/*<-*/
         : array_aux::recursive_result<N, U>
     {}/*->*/;
 
@@ -58,23 +61,27 @@
 
 }// result_of
 
+ // Generates an empty array
     template<typename T>
     typename result_of::array<T, keyword_aux::nil>::type
- /*<<Generates an empty array>>*/array( keyword_aux::nil )/*<-*/
+ array( keyword_aux::nil )
+ /*<-*/
     {
         return ref::list<list_aux::array_tag>( v2::_nil );
     }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
 
+ // Generates a size one array
     template<typename T>
     typename result_of::array<T>::type
- /*<<Generates a size one array>>*/array(T& t)/*<-*/
+ array(T& t)/*<-*/
     {
         return array<T>( v2::_nil )( t );
     }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/
 
+ // Generates a size one array
     template<typename T>
     typename result_of::array<T const>::type
- /*<<Generates a size one array>>*/array(T const & t)/*<-*/
+ array(T const & t)/*<-*/
     {
         return array<T const>( v2::_nil )( t );
     }BOOST_ASSIGN_V2_IGNORE(/*->*/;/*<-*/)/*->*/

Modified: sandbox/assign_v2/boost/assign/v2/ref/array/as_arg_list.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/as_arg_list.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/as_arg_list.hpp 2011-03-24 14:12:07 EDT (Thu, 24 Mar 2011)
@@ -25,20 +25,12 @@
     typename boost::enable_if_c<
         D::static_size == I
>::type
- as_arg_list(
- F const& f ,
- interface<Impl, D> const& array
- )
+ as_arg_list( F const& f, interface<Impl, D> const& array)
     {}
 
     template<size_type I, typename F, typename Impl, typename D>
- typename boost::enable_if_c<
- I < D::static_size
- >::type
- as_arg_list(
- F const& f ,
- interface<Impl, D> const& array
- )
+ typename boost::enable_if_c< I < D::static_size >::type
+ as_arg_list(F const& f , interface<Impl, D> const& array)
     {
         f( array[ I ].get() );
         as_arg_list<I + 1>( f, array );
@@ -47,10 +39,8 @@
     // --- User interface --- //
 
     template<typename F, typename Impl, typename D>
- void as_arg_list(
- F const& f ,
- interface<Impl, D> const& array
- ){
+ void as_arg_list(F const& f , interface<Impl, D> const& array)
+ {
         as_arg_list<0>( f, array );
     }
 

Modified: sandbox/assign_v2/boost/assign/v2/ref/array/csv_array.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/csv_array.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/csv_array.hpp 2011-03-24 14:12:07 EDT (Thu, 24 Mar 2011)
@@ -34,8 +34,11 @@
 //->
 namespace nth_result_of{
 
- template<array_size_type N, typename /*<<U& has to be a reference>>*/U>
- struct /*<<Metafunction>>*/csv_array/*<-*/
+ template<
+ array_size_type N
+ , typename U // U& has to be a reference
+ >
+ struct csv_array/*<-*/
     {
         typedef array_aux::instant_alloc<N, U> type;
     }/*->*/;

Modified: sandbox/assign_v2/boost/assign/v2/ref/array/get.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/get.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/get.hpp 2011-03-24 14:12:07 EDT (Thu, 24 Mar 2011)
@@ -32,8 +32,10 @@
 namespace ref{
 namespace result_of{
 
- template<typename /*<<Range of reference-wrappers>>*/R>
- struct /*<<Metafunction>>*/transform_get/*<-*/{
+ template<
+ typename R // Range of reference-wrappers
+ >
+ struct transform_get/*<-*/{
 
         typedef ref::get_functor f_;
         #ifdef BOOST_MSVC
@@ -49,9 +51,9 @@
 
 }// result_of
 
+ // Transforms rw by member function `get()`
     template<typename R>
     typename result_of::transform_get<R>::type
- /*<<Semantics: transforms `r` by invoking member function `get()`>>*/
     transform_get(R& rw)/*<-*/
     {
         typedef typename result_of::transform_get<R>::type result_;
@@ -67,7 +69,6 @@
     
     template<typename R>
     typename result_of::transform_get<R const>::type
- /*<<Semantics: transforms `r` by invoking member function `get()`>>*/
     transform_get(R const& rw )/*<-*/
     {
         typedef typename result_of::transform_get<R const>::type result_;

Deleted: sandbox/assign_v2/boost/assign/v2/utility.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/utility.hpp 2011-03-24 14:12:07 EDT (Thu, 24 Mar 2011)
+++ (empty file)
@@ -1 +0,0 @@
-// 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