|
6138 | 6138 | constexpr void notify_all() noexcept; |
6139 | 6139 |
|
6140 | 6140 | private: |
6141 | | - shared_ptr<T> p; // \expos |
| 6141 | + shared_ptr<T> @\exposid{p}@; // \expos |
6142 | 6142 | }; |
6143 | 6143 | } |
6144 | 6144 | \end{codeblock} |
|
6151 | 6151 | \begin{itemdescr} |
6152 | 6152 | \pnum |
6153 | 6153 | \effects |
6154 | | -Value-initializes \tcode{p}. |
| 6154 | +Value-initializes \exposid{p}. |
6155 | 6155 | \end{itemdescr} |
6156 | 6156 |
|
6157 | 6157 | \indexlibraryctor{atomic<shared_ptr<T>>}% |
|
6192 | 6192 | \pnum |
6193 | 6193 | \effects |
6194 | 6194 | Atomically replaces the value pointed to by \keyword{this} with |
6195 | | -the value of \tcode{desired} as if by \tcode{p.swap(desired)}. |
| 6195 | +the value of \tcode{desired} as if by \tcode{\exposid{p}.swap(desired)}. |
6196 | 6196 | Memory is affected according to the value of \tcode{order}. |
6197 | 6197 | \end{itemdescr} |
6198 | 6198 |
|
|
6237 | 6237 |
|
6238 | 6238 | \pnum |
6239 | 6239 | \returns |
6240 | | -Atomically returns \tcode{p}. |
| 6240 | +Atomically returns \exposid{p}. |
6241 | 6241 | \end{itemdescr} |
6242 | 6242 |
|
6243 | 6243 | \indexlibrarymember{operator shared_ptr<T>}{atomic<shared_ptr<T>>}% |
|
6260 | 6260 | \begin{itemdescr} |
6261 | 6261 | \pnum |
6262 | 6262 | \effects |
6263 | | -Atomically replaces \tcode{p} with \tcode{desired} |
6264 | | -as if by \tcode{p.swap(desired)}. |
| 6263 | +Atomically replaces \exposid{p} with \tcode{desired} |
| 6264 | +as if by \tcode{\exposid{p}.swap(desired)}. |
6265 | 6265 | Memory is affected according to the value of \tcode{order}. |
6266 | 6266 | This is an atomic read-modify-write operation\iref{intro.races}. |
6267 | 6267 |
|
6268 | 6268 | \pnum |
6269 | 6269 | \returns |
6270 | | -Atomically returns the value of \tcode{p} immediately before the effects. |
| 6270 | +Atomically returns the value of \exposid{p} immediately before the effects. |
6271 | 6271 | \end{itemdescr} |
6272 | 6272 |
|
6273 | 6273 | \indexlibrarymember{compare_exchange_weak}{atomic<shared_ptr<T>>}% |
|
6289 | 6289 |
|
6290 | 6290 | \pnum |
6291 | 6291 | \effects |
6292 | | -If \tcode{p} is equivalent to \tcode{expected}, |
6293 | | -assigns \tcode{desired} to \tcode{p} and |
| 6292 | +If \exposid{p} is equivalent to \tcode{expected}, |
| 6293 | +assigns \tcode{desired} to \exposid{p} and |
6294 | 6294 | has synchronization semantics corresponding to the value of \tcode{success}, |
6295 | | -otherwise assigns \tcode{p} to \tcode{expected} and |
| 6295 | +otherwise assigns \exposid{p} to \tcode{expected} and |
6296 | 6296 | has synchronization semantics corresponding to the value of \tcode{failure}. |
6297 | 6297 |
|
6298 | 6298 | \pnum |
6299 | 6299 | \returns |
6300 | | -\tcode{true} if \tcode{p} was equivalent to \tcode{expected}, |
| 6300 | +\tcode{true} if \exposid{p} was equivalent to \tcode{expected}, |
6301 | 6301 | \tcode{false} otherwise. |
6302 | 6302 |
|
6303 | 6303 | \pnum |
|
0 commit comments