diff --git a/doc/smart_ptr/local_shared_ptr.adoc b/doc/smart_ptr/local_shared_ptr.adoc index 7406ca9..4b0796f 100644 --- a/doc/smart_ptr/local_shared_ptr.adoc +++ b/doc/smart_ptr/local_shared_ptr.adoc @@ -124,7 +124,7 @@ namespace boost { template void reset(local_shared_ptr && r, element_type * p) noexcept; // accessors - + T & operator*() const noexcept; // only valid when T is not an array type T * operator->() const noexcept; // only valid when T is not an array type @@ -143,12 +143,16 @@ namespace boost { template operator weak_ptr() const noexcept; // swap - + void swap(local_shared_ptr & b) noexcept; // owner_before - - template bool owner_before(local_shared_ptr const & rhs) const noexcept; + + template bool owner_before(local_shared_ptr const & r) const noexcept; + + // owner_equals + + template bool owner_equals(local_shared_ptr const & r) const noexcept; }; // comparisons @@ -546,14 +550,24 @@ Effects:: ### owner_before ``` -template bool owner_before(local_shared_ptr const & rhs) const noexcept; +template bool owner_before(local_shared_ptr const & r) const noexcept; ``` [none] * {blank} + -Effects:: +Returns:: See the description of `operator<`. +### owner_equals +``` +template bool owner_equals(local_shared_ptr const & r) const noexcept; +``` +[none] +* {blank} ++ +Returns:: + `true` if and only if `*this` and `r` share ownership or are both empty. + ## Free Functions ### comparison