diff --git a/doc/smart_ptr/shared_ptr.adoc b/doc/smart_ptr/shared_ptr.adoc index 110e511..ea8091a 100644 --- a/doc/smart_ptr/shared_ptr.adoc +++ b/doc/smart_ptr/shared_ptr.adoc @@ -178,8 +178,11 @@ namespace boost { void swap(shared_ptr & b) noexcept; - template bool owner_before(shared_ptr const & rhs) const noexcept; - template bool owner_before(weak_ptr const & rhs) const noexcept; + template bool owner_before(shared_ptr const & r) const noexcept; + template bool owner_before(weak_ptr const & r) const noexcept; + + template bool owner_equals(shared_ptr const & r) const noexcept; + template bool owner_equals(weak_ptr const & r) const noexcept; }; template @@ -645,15 +648,27 @@ Effects:: Exchanges the contents of the two smart pointers. ### owner_before ``` -template bool owner_before(shared_ptr const & rhs) const noexcept; +template bool owner_before(shared_ptr const & r) const noexcept; ``` ``` -template bool owner_before(weak_ptr const & rhs) const noexcept; +template bool owner_before(weak_ptr const & r) const noexcept; ``` [none] * {blank} + -Effects:: See the description of `operator<`. +Returns:: See the description of `operator<`. + +### owner_equals +``` +template bool owner_equals(shared_ptr const & r) const noexcept; +``` +``` +template bool owner_equals(weak_ptr const & r) const noexcept; +``` +[none] +* {blank} ++ +Returns:: `true` if and only if `*this` and `r` share ownership or are both empty. ## Free Functions diff --git a/doc/smart_ptr/weak_ptr.adoc b/doc/smart_ptr/weak_ptr.adoc index af2fee2..d70da9d 100644 --- a/doc/smart_ptr/weak_ptr.adoc +++ b/doc/smart_ptr/weak_ptr.adoc @@ -112,6 +112,9 @@ namespace boost { template bool owner_before( weak_ptr const & r ) const noexcept; template bool owner_before( shared_ptr const & r ) const noexcept; + + template bool owner_equals( weak_ptr const & r ) const noexcept; + template bool owner_equals( shared_ptr const & r ) const noexcept; }; template @@ -263,6 +266,7 @@ void swap(weak_ptr & b) noexcept; + Effects:: Exchanges the contents of the two smart pointers. +### owner_before ``` template bool owner_before( weak_ptr const & r ) const noexcept; ``` @@ -274,6 +278,18 @@ template bool owner_before( shared_ptr const & r ) const noexcept; + Returns:: See the description of `operator<`. +### owner_equals +``` +template bool owner_equals( weak_ptr const & r ) const noexcept; +``` +``` +template bool owner_equals( 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