forked from boostorg/smart_ptr
Document local_shared_ptr::owner_equals
This commit is contained in:
@@ -148,7 +148,11 @@ namespace boost {
|
|||||||
|
|
||||||
// owner_before
|
// owner_before
|
||||||
|
|
||||||
template<class Y> bool owner_before(local_shared_ptr<Y> const & rhs) const noexcept;
|
template<class Y> bool owner_before(local_shared_ptr<Y> const & r) const noexcept;
|
||||||
|
|
||||||
|
// owner_equals
|
||||||
|
|
||||||
|
template<class Y> bool owner_equals(local_shared_ptr<Y> const & r) const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
// comparisons
|
// comparisons
|
||||||
@@ -546,14 +550,24 @@ Effects::
|
|||||||
|
|
||||||
### owner_before
|
### owner_before
|
||||||
```
|
```
|
||||||
template<class Y> bool owner_before(local_shared_ptr<Y> const & rhs) const noexcept;
|
template<class Y> bool owner_before(local_shared_ptr<Y> const & r) const noexcept;
|
||||||
```
|
```
|
||||||
[none]
|
[none]
|
||||||
* {blank}
|
* {blank}
|
||||||
+
|
+
|
||||||
Effects::
|
Returns::
|
||||||
See the description of `operator<`.
|
See the description of `operator<`.
|
||||||
|
|
||||||
|
### owner_equals
|
||||||
|
```
|
||||||
|
template<class Y> bool owner_equals(local_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
|
## Free Functions
|
||||||
|
|
||||||
### comparison
|
### comparison
|
||||||
|
Reference in New Issue
Block a user