Document owner_equals

This commit is contained in:
Peter Dimov committed 2020-06-01 00:40:02 +03:00
1 parent 4b724ab3f8
commit 9dcd05f918
2 files changed
+36 -5

No files matched your search

+16
View File
@@ -112,6 +112,9 @@ namespace boost {
template<class Y> bool owner_before( weak_ptr<Y> const & r ) const noexcept;
template<class Y> bool owner_before( shared_ptr<Y> const & r ) const noexcept;
template<class Y> bool owner_equals( weak_ptr<Y> const & r ) const noexcept;
template<class Y> bool owner_equals( shared_ptr<Y> const & r ) const noexcept;
};
template<class T, class U>
@@ -263,6 +266,7 @@ void swap(weak_ptr & b) noexcept;
+
Effects:: Exchanges the contents of the two smart pointers.
### owner_before
```
template<class Y> bool owner_before( weak_ptr<Y> const & r ) const noexcept;
```
@@ -274,6 +278,18 @@ template<class Y> bool owner_before( shared_ptr<Y> const & r ) const noexcept;
+
Returns:: See the description of `operator<`.
### owner_equals
```
template<class Y> bool owner_equals( weak_ptr<Y> const & r ) const noexcept;
```
```
template<class Y> bool owner_equals( shared_ptr<Y> const & r ) const noexcept;
```
[none]
* {blank}
+
Returns:: `true` if and only if `*this` and `r` share ownership or are both empty.
## Free Functions
### comparison