Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71180 - sandbox/shifted_ptr/boost
From: phil_at_[hidden]
Date: 2011-04-10 21:41:38


Author: pbouchard
Date: 2011-04-10 21:41:37 EDT (Sun, 10 Apr 2011)
New Revision: 71180
URL: http://svn.boost.org/trac/boost/changeset/71180

Log:
* Comments fix
Text files modified:
   sandbox/shifted_ptr/boost/shifted_ptr.hpp | 52 +++++++++++++++++++++++++++++----------
   1 files changed, 38 insertions(+), 14 deletions(-)

Modified: sandbox/shifted_ptr/boost/shifted_ptr.hpp
==============================================================================
--- sandbox/shifted_ptr/boost/shifted_ptr.hpp (original)
+++ sandbox/shifted_ptr/boost/shifted_ptr.hpp 2011-04-10 21:41:37 EDT (Sun, 10 Apr 2011)
@@ -228,9 +228,6 @@
 
                 /**
                         Initialization of a pointer living on the stack or proper enlistment if living on the heap.
-
- @param p New pointee object or pointer to manage.
- @{
                 */
                 
         shifted_ptr() : ps_(0)
@@ -241,6 +238,13 @@
                 owned_base::pool_.top(this)->ptrs_.push(& pn_);
         }
 
+
+ /**
+ Initialization of a pointer living on the stack or proper enlistment if living on the heap.
+
+ @param p New pointee object to manage.
+ */
+
         template <typename V>
             shifted_ptr(shifted<V> * p) : base(p)
             {
@@ -257,6 +261,13 @@
                 }
             }
 
+
+ /**
+ Initialization of a pointer living on the stack or proper enlistment if living on the heap.
+
+ @param p New pointer to manage.
+ */
+
         template <typename V>
             shifted_ptr(shifted_ptr<V> const & p) : base(p)
             {
@@ -268,7 +279,14 @@
                 ps_->redir(p.ps_);
             }
 
- shifted_ptr(shifted_ptr<T> const & p) : base(p)
+
+ /**
+ Initialization of a pointer living on the stack or proper enlistment if living on the heap.
+
+ @param p New pointer to manage.
+ */
+
+ shifted_ptr(shifted_ptr<T> const & p) : base(p)
             {
                 if (! owned_base::pool_.is_from(this))
                     ps_ = new set();
@@ -278,15 +296,11 @@
                 ps_->redir(p.ps_);
             }
 
- /**
- @}
- */
 
                 /**
- Affectators & union of 2 @c set s if the pointee is residing the heap.
+ Assignment & union of 2 @c set s if the pointee resides a different @c set.
                         
- @param p New pointee object or pointer to manage.
- @{
+ @param p New pointee object to manage.
                 */
                 
         template <typename V>
@@ -304,6 +318,13 @@
                 return * this;
             }
 
+
+ /**
+ Assignment & union of 2 @c set s if the pointee resides a different @c set.
+
+ @param p New pointer to manage.
+ */
+
         template <typename V>
             shifted_ptr & operator = (shifted_ptr<V> const & p)
             {
@@ -318,15 +339,18 @@
                 return * this;
             }
 
+
+ /**
+ Assignment & union of 2 @c set s if the pointee resides a different @c set.
+
+ @param p New pointer to manage.
+ */
+
             shifted_ptr & operator = (shifted_ptr<T> const & p)
             {
                 return operator = <T>(p);
             }
 
- /**
- @}
- */
-
         void reset()
         {
             release(false);


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