forked from boostorg/smart_ptr
Update documentation
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
////
|
////
|
||||||
Copyright 2019 Peter Dimov
|
Copyright 2019, 2020 Peter Dimov
|
||||||
|
|
||||||
Distributed under the Boost Software License, Version 1.0.
|
Distributed under the Boost Software License, Version 1.0.
|
||||||
|
|
||||||
@@ -17,6 +17,10 @@ http://www.boost.org/LICENSE_1_0.txt
|
|||||||
|
|
||||||
* Added `owner_equals` to `shared_ptr`, `weak_ptr`, `local_shared_ptr`
|
* Added `owner_equals` to `shared_ptr`, `weak_ptr`, `local_shared_ptr`
|
||||||
* Added `owner_equal_to`
|
* Added `owner_equal_to`
|
||||||
|
* Added `std::hash` specializations for `shared_ptr`, `local_shared_ptr`
|
||||||
|
* Added `owner_hash_value` to `shared_ptr`, `weak_ptr`
|
||||||
|
* Added `boost::hash` support and `std::hash`, `std::equal_to`
|
||||||
|
specializations for `weak_ptr`
|
||||||
|
|
||||||
## Changes in 1.72.0
|
## Changes in 1.72.0
|
||||||
|
|
||||||
|
@@ -183,6 +183,8 @@ namespace boost {
|
|||||||
|
|
||||||
template<class Y> bool owner_equals(shared_ptr<Y> const & r) const noexcept;
|
template<class Y> bool owner_equals(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(weak_ptr<Y> const & r) const noexcept;
|
||||||
|
|
||||||
|
std::size_t owner_hash_value() const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T, class U>
|
template<class T, class U>
|
||||||
@@ -677,6 +679,17 @@ template<class Y> bool owner_equals(weak_ptr<Y> const & r) const noexcept;
|
|||||||
Returns::
|
Returns::
|
||||||
`true` if and only if `*this` and `r` share ownership or are both empty.
|
`true` if and only if `*this` and `r` share ownership or are both empty.
|
||||||
|
|
||||||
|
### owner_hash_value
|
||||||
|
```
|
||||||
|
std::size_t owner_hash_value() const noexcept;
|
||||||
|
```
|
||||||
|
[none]
|
||||||
|
* {blank}
|
||||||
|
+
|
||||||
|
Returns::
|
||||||
|
An unspecified hash value such that two instances that share ownership
|
||||||
|
have the same hash value.
|
||||||
|
|
||||||
## Free Functions
|
## Free Functions
|
||||||
|
|
||||||
### comparison
|
### comparison
|
||||||
|
@@ -115,6 +115,8 @@ namespace boost {
|
|||||||
|
|
||||||
template<class Y> bool owner_equals( weak_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 Y> bool owner_equals( shared_ptr<Y> const & r ) const noexcept;
|
||||||
|
|
||||||
|
std::size_t owner_hash_value() const noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T, class U>
|
template<class T, class U>
|
||||||
@@ -298,6 +300,17 @@ template<class Y> bool owner_equals( shared_ptr<Y> const & r ) const noexcept;
|
|||||||
Returns::
|
Returns::
|
||||||
`true` if and only if `*this` and `r` share ownership or are both empty.
|
`true` if and only if `*this` and `r` share ownership or are both empty.
|
||||||
|
|
||||||
|
### owner_hash_value
|
||||||
|
```
|
||||||
|
std::size_t owner_hash_value() const noexcept;
|
||||||
|
```
|
||||||
|
[none]
|
||||||
|
* {blank}
|
||||||
|
+
|
||||||
|
Returns::
|
||||||
|
An unspecified hash value such that two instances that share ownership
|
||||||
|
have the same hash value.
|
||||||
|
|
||||||
## Free Functions
|
## Free Functions
|
||||||
|
|
||||||
### comparison
|
### comparison
|
||||||
|
Reference in New Issue
Block a user