|
6466 | 6466 | constexpr void notify_all() noexcept; |
6467 | 6467 |
|
6468 | 6468 | private: |
6469 | | - weak_ptr<T> p; // \expos |
| 6469 | + weak_ptr<T> @\exposid{p}@; // \expos |
6470 | 6470 | }; |
6471 | 6471 | } |
6472 | 6472 | \end{codeblock} |
|
6479 | 6479 | \begin{itemdescr} |
6480 | 6480 | \pnum |
6481 | 6481 | \effects |
6482 | | -Value-initializes \tcode{p}. |
| 6482 | +Value-initializes \exposid{p}. |
6483 | 6483 | \end{itemdescr} |
6484 | 6484 |
|
6485 | 6485 | \indexlibraryctor{atomic<weak_ptr<T>>}% |
|
6520 | 6520 | \pnum |
6521 | 6521 | \effects |
6522 | 6522 | Atomically replaces the value pointed to by \keyword{this} with |
6523 | | -the value of \tcode{desired} as if by \tcode{p.swap(desired)}. |
| 6523 | +the value of \tcode{desired} as if by \tcode{\exposid{p}.swap(desired)}. |
6524 | 6524 | Memory is affected according to the value of \tcode{order}. |
6525 | 6525 | \end{itemdescr} |
6526 | 6526 |
|
|
6554 | 6554 |
|
6555 | 6555 | \pnum |
6556 | 6556 | \returns |
6557 | | -Atomically returns \tcode{p}. |
| 6557 | +Atomically returns \exposid{p}. |
6558 | 6558 | \end{itemdescr} |
6559 | 6559 |
|
6560 | 6560 | \indexlibrarymember{operator weak_ptr<T>}{atomic<weak_ptr<T>>}% |
|
6577 | 6577 | \begin{itemdescr} |
6578 | 6578 | \pnum |
6579 | 6579 | \effects |
6580 | | -Atomically replaces \tcode{p} with \tcode{desired} |
6581 | | -as if by \tcode{p.swap(desired)}. |
| 6580 | +Atomically replaces \exposid{p} with \tcode{desired} |
| 6581 | +as if by \tcode{\exposid{p}.swap(desired)}. |
6582 | 6582 | Memory is affected according to the value of \tcode{order}. |
6583 | 6583 | This is an atomic read-modify-write operation\iref{intro.races}. |
6584 | 6584 |
|
6585 | 6585 | \pnum |
6586 | 6586 | \returns |
6587 | | -Atomically returns the value of \tcode{p} immediately before the effects. |
| 6587 | +Atomically returns the value of \exposid{p} immediately before the effects. |
6588 | 6588 | \end{itemdescr} |
6589 | 6589 |
|
6590 | 6590 | \indexlibrarymember{compare_exchange_weak}{atomic<weak_ptr<T>>}% |
|
6605 | 6605 |
|
6606 | 6606 | \pnum |
6607 | 6607 | \effects |
6608 | | -If \tcode{p} is equivalent to \tcode{expected}, |
6609 | | -assigns \tcode{desired} to \tcode{p} and |
| 6608 | +If \exposid{p} is equivalent to \tcode{expected}, |
| 6609 | +assigns \tcode{desired} to \exposid{p} and |
6610 | 6610 | has synchronization semantics corresponding to the value of \tcode{success}, |
6611 | | -otherwise assigns \tcode{p} to \tcode{expected} and |
| 6611 | +otherwise assigns \exposid{p} to \tcode{expected} and |
6612 | 6612 | has synchronization semantics corresponding to the value of \tcode{failure}. |
6613 | 6613 |
|
6614 | 6614 | \pnum |
6615 | 6615 | \returns |
6616 | | -\tcode{true} if \tcode{p} was equivalent to \tcode{expected}, |
| 6616 | +\tcode{true} if \exposid{p} was equivalent to \tcode{expected}, |
6617 | 6617 | \tcode{false} otherwise. |
6618 | 6618 |
|
6619 | 6619 | \pnum |
|
0 commit comments