From Jason Turner

[util.smartptr.weak.obs]

Diff to HTML by rtfpessoa

tmp/tmpvl648k0a/{from.md → to.md} RENAMED
@@ -1,6 +1,6 @@
1
- ##### `weak_ptr` observers <a id="util.smartptr.weak.obs">[[util.smartptr.weak.obs]]</a>
2
 
3
  ``` cpp
4
  long use_count() const noexcept;
5
  ```
6
 
@@ -19,12 +19,12 @@ shared_ptr<T> lock() const noexcept;
19
 
20
  *Returns:* `expired() ? shared_ptr<T>() : shared_ptr<T>(*this)`,
21
  executed atomically.
22
 
23
  ``` cpp
24
- template<class U> bool owner_before(const shared_ptr<U>& b) const;
25
- template<class U> bool owner_before(const weak_ptr<U>& b) const;
26
  ```
27
 
28
  *Returns:* An unspecified value such that
29
 
30
  - `x.owner_before(y)` defines a strict weak ordering as defined
 
1
+ #### Observers <a id="util.smartptr.weak.obs">[[util.smartptr.weak.obs]]</a>
2
 
3
  ``` cpp
4
  long use_count() const noexcept;
5
  ```
6
 
 
19
 
20
  *Returns:* `expired() ? shared_ptr<T>() : shared_ptr<T>(*this)`,
21
  executed atomically.
22
 
23
  ``` cpp
24
+ template<class U> bool owner_before(const shared_ptr<U>& b) const noexcept;
25
+ template<class U> bool owner_before(const weak_ptr<U>& b) const noexcept;
26
  ```
27
 
28
  *Returns:* An unspecified value such that
29
 
30
  - `x.owner_before(y)` defines a strict weak ordering as defined