From Jason Turner

[thread.lock.shared.cons]

Diff to HTML by rtfpessoa

tmp/tmplzto6959/{from.md → to.md} RENAMED
@@ -81,11 +81,9 @@ state of `sl` just prior to this construction), `sl.pm == nullptr` and
81
 
82
  ``` cpp
83
  shared_lock& operator=(shared_lock&& sl) noexcept;
84
  ```
85
 
86
- *Effects:* If `owns` calls `pm->unlock_shared()`.
87
 
88
- *Ensures:* `pm == sl_p.pm` and `owns == sl_p.owns` (where `sl_p` is the
89
- state of `sl` just prior to this assignment), `sl.pm == nullptr` and
90
- `sl.owns == false`.
91
 
 
81
 
82
  ``` cpp
83
  shared_lock& operator=(shared_lock&& sl) noexcept;
84
  ```
85
 
86
+ *Effects:* Equivalent to: `shared_lock(std::move(sl)).swap(*this)`
87
 
88
+ *Returns:* `*this`.
 
 
89