|
6166 | 6166 | constexpr void notify_all() noexcept; |
6167 | 6167 |
|
6168 | 6168 | private: |
6169 | | - shared_ptr<T> p; // \expos |
| 6169 | + shared_ptr<T> @\exposid{p}@; // \expos |
6170 | 6170 | }; |
6171 | 6171 | } |
6172 | 6172 | \end{codeblock} |
|
6179 | 6179 | \begin{itemdescr} |
6180 | 6180 | \pnum |
6181 | 6181 | \effects |
6182 | | -Value-initializes \tcode{p}. |
| 6182 | +Value-initializes \exposid{p}. |
6183 | 6183 | \end{itemdescr} |
6184 | 6184 |
|
6185 | 6185 | \indexlibraryctor{atomic<shared_ptr<T>>}% |
|
6220 | 6220 | \pnum |
6221 | 6221 | \effects |
6222 | 6222 | Atomically replaces the value pointed to by \keyword{this} with |
6223 | | -the value of \tcode{desired} as if by \tcode{p.swap(desired)}. |
| 6223 | +the value of \tcode{desired} as if by \tcode{\exposid{p}.swap(desired)}. |
6224 | 6224 | Memory is affected according to the value of \tcode{order}. |
6225 | 6225 | \end{itemdescr} |
6226 | 6226 |
|
|
6265 | 6265 |
|
6266 | 6266 | \pnum |
6267 | 6267 | \returns |
6268 | | -Atomically returns \tcode{p}. |
| 6268 | +Atomically returns \exposid{p}. |
6269 | 6269 | \end{itemdescr} |
6270 | 6270 |
|
6271 | 6271 | \indexlibrarymember{operator shared_ptr<T>}{atomic<shared_ptr<T>>}% |
|
6288 | 6288 | \begin{itemdescr} |
6289 | 6289 | \pnum |
6290 | 6290 | \effects |
6291 | | -Atomically replaces \tcode{p} with \tcode{desired} |
6292 | | -as if by \tcode{p.swap(desired)}. |
| 6291 | +Atomically replaces \exposid{p} with \tcode{desired} |
| 6292 | +as if by \tcode{\exposid{p}.swap(desired)}. |
6293 | 6293 | Memory is affected according to the value of \tcode{order}. |
6294 | 6294 | This is an atomic read-modify-write operation\iref{intro.races}. |
6295 | 6295 |
|
6296 | 6296 | \pnum |
6297 | 6297 | \returns |
6298 | | -Atomically returns the value of \tcode{p} immediately before the effects. |
| 6298 | +Atomically returns the value of \exposid{p} immediately before the effects. |
6299 | 6299 | \end{itemdescr} |
6300 | 6300 |
|
6301 | 6301 | \indexlibrarymember{compare_exchange_weak}{atomic<shared_ptr<T>>}% |
|
6317 | 6317 |
|
6318 | 6318 | \pnum |
6319 | 6319 | \effects |
6320 | | -If \tcode{p} is equivalent to \tcode{expected}, |
6321 | | -assigns \tcode{desired} to \tcode{p} and |
| 6320 | +If \exposid{p} is equivalent to \tcode{expected}, |
| 6321 | +assigns \tcode{desired} to \exposid{p} and |
6322 | 6322 | has synchronization semantics corresponding to the value of \tcode{success}, |
6323 | | -otherwise assigns \tcode{p} to \tcode{expected} and |
| 6323 | +otherwise assigns \exposid{p} to \tcode{expected} and |
6324 | 6324 | has synchronization semantics corresponding to the value of \tcode{failure}. |
6325 | 6325 |
|
6326 | 6326 | \pnum |
6327 | 6327 | \returns |
6328 | | -\tcode{true} if \tcode{p} was equivalent to \tcode{expected}, |
| 6328 | +\tcode{true} if \exposid{p} was equivalent to \tcode{expected}, |
6329 | 6329 | \tcode{false} otherwise. |
6330 | 6330 |
|
6331 | 6331 | \pnum |
|
0 commit comments