Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69741 - sandbox/assign_v2/boost/assign/v2/ref/array
From: erwann.rogard_at_[hidden]
Date: 2011-03-08 22:19:37


Author: e_r
Date: 2011-03-08 22:19:36 EST (Tue, 08 Mar 2011)
New Revision: 69741
URL: http://svn.boost.org/trac/boost/changeset/69741

Log:
upd assign_v2
Text files modified:
   sandbox/assign_v2/boost/assign/v2/ref/array/interface.hpp | 69 ++++++++++++++++++++-------------------
   1 files changed, 36 insertions(+), 33 deletions(-)

Modified: sandbox/assign_v2/boost/assign/v2/ref/array/interface.hpp
==============================================================================
--- sandbox/assign_v2/boost/assign/v2/ref/array/interface.hpp (original)
+++ sandbox/assign_v2/boost/assign/v2/ref/array/interface.hpp 2011-03-08 22:19:36 EST (Tue, 08 Mar 2011)
@@ -50,10 +50,11 @@
 
     };
 
+//[array_interface
     template<typename Impl, typename D>
     class interface
     {
-
+//<-
         typedef interface_traits<Impl> traits_;
         typedef typename traits_::wrapper_ wrapper_;
         typedef typename traits_::impl_ impl_;
@@ -61,7 +62,7 @@
         typedef interface<Impl, D> this_;
         typedef typename traits_::result_of_get_ result_of_get_;
         typedef typename traits_::param_type param_type;
-
+//->
         public:
 
         typedef wrapper_ wrapper_type;
@@ -76,69 +77,69 @@
 
         BOOST_STATIC_CONSTANT(size_type, static_size = Impl::static_size);
 
- iterator begin()
+ iterator begin()//<-
         {
             return boost::begin( this->wrappers() );
- }
- iterator end()
+ }//->
+ iterator end()//<-
         {
             return boost::end( this->wrappers() );
- }
- const_iterator begin()const
+ }//->
+ const_iterator begin()const//<-
         {
             return boost::begin( this->wrappers() );
- }
- const_iterator end()const
+ }//->
+ const_iterator end()const//<-
         {
             return boost::end( this->wrappers() );
- }
+ }//->
 
- size_type size() const
+ size_type size() const//<-
         {
             return this->wrappers().size();
- }
- bool empty() const
+ }//->
+ bool empty() const//<-
         {
             return this->wrappers().empty();
- }
+ }//->
 
- void rebind(size_type i, result_of_get_ t)
+ void rebind(size_type i, result_of_get_ t)//<-
         {
             return (this->wrappers())[i].rebind( t );
- }
+ }//->
 
- reference operator[](size_type i)
+ reference operator[](size_type i)//<-
         {
             return this->elem_impl( this->wrappers()[i] );
- }
- const_reference operator[](size_type i)const
+ }//->
+ const_reference operator[](size_type i)const//<-
         {
             return this->elem_impl( this->wrappers()[i] );
- }
+ }//->
 
- reference front()
+ reference front()//<-
         {
             return this->elem_impl( this->wrappers().front() );
- }
- const_reference front() const
+ }//->
+ const_reference front() const//<-
         {
             return this->elem_impl( this->wrappers().front() );
- }
- reference back()
+ }//->
+ reference back()//<-
         {
             return this->elem_impl( this->wrappers().back() );
- }
- const_reference back() const
+ }//->
+ const_reference back() const//<-
         {
             return this->elem_impl( this->wrappers().back() );
- }
+ }//->
 
- void assign(param_type val)
+ void assign(param_type val)//<-
         {
             typedef ::boost::mpl::int_<0> int_;
             this->assign_impl( val, int_() );
- }
-
+ }//->
+//<-
         protected:
 
         void assign_impl(param_type val, ::boost::mpl::int_<static_size>)
@@ -167,11 +168,13 @@
 
         public:
 
- impl_& wrappers(){
+ impl_& wrappers()//<-
+ {
             return static_cast<D&>(*this).impl();
         }
 
- cimpl_& wrappers()const{
+ cimpl_& wrappers()const//<-
+ {
             return static_cast<const D&>(*this).impl();
         }
 


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