From Jason Turner

[util.smartptr.weak.obs]

Diff to HTML by rtfpessoa

tmp/tmpw7vljtt5/{from.md → to.md} RENAMED
@@ -19,15 +19,16 @@ bool expired() const noexcept;
19
 
20
  ``` cpp
21
  shared_ptr<T> lock() const noexcept;
22
  ```
23
 
24
- *Returns:* `expired() ? shared_ptr<T>() : shared_ptr<T>(*this)`.
 
25
 
26
  ``` cpp
27
- template<class U> bool owner_before(shared_ptr<U> const& b);
28
- template<class U> bool owner_before(weak_ptr<U> const& b);
29
  ```
30
 
31
  *Returns:* An unspecified value such that
32
 
33
  - `x.owner_before(y)` defines a strict weak ordering as defined
 
19
 
20
  ``` cpp
21
  shared_ptr<T> lock() const noexcept;
22
  ```
23
 
24
+ *Returns:* `expired() ? shared_ptr<T>() : shared_ptr<T>(*this)`,
25
+ executed atomically.
26
 
27
  ``` cpp
28
+ template<class U> bool owner_before(shared_ptr<U> const& b) const;
29
+ template<class U> bool owner_before(weak_ptr<U> const& b) const;
30
  ```
31
 
32
  *Returns:* An unspecified value such that
33
 
34
  - `x.owner_before(y)` defines a strict weak ordering as defined