|
6494 | 6494 | constexpr void notify_all() noexcept; |
6495 | 6495 |
|
6496 | 6496 | private: |
6497 | | - weak_ptr<T> p; // \expos |
| 6497 | + weak_ptr<T> @\exposid{p}@; // \expos |
6498 | 6498 | }; |
6499 | 6499 | } |
6500 | 6500 | \end{codeblock} |
|
6507 | 6507 | \begin{itemdescr} |
6508 | 6508 | \pnum |
6509 | 6509 | \effects |
6510 | | -Value-initializes \tcode{p}. |
| 6510 | +Value-initializes \exposid{p}. |
6511 | 6511 | \end{itemdescr} |
6512 | 6512 |
|
6513 | 6513 | \indexlibraryctor{atomic<weak_ptr<T>>}% |
|
6548 | 6548 | \pnum |
6549 | 6549 | \effects |
6550 | 6550 | Atomically replaces the value pointed to by \keyword{this} with |
6551 | | -the value of \tcode{desired} as if by \tcode{p.swap(desired)}. |
| 6551 | +the value of \tcode{desired} as if by \tcode{\exposid{p}.swap(desired)}. |
6552 | 6552 | Memory is affected according to the value of \tcode{order}. |
6553 | 6553 | \end{itemdescr} |
6554 | 6554 |
|
|
6582 | 6582 |
|
6583 | 6583 | \pnum |
6584 | 6584 | \returns |
6585 | | -Atomically returns \tcode{p}. |
| 6585 | +Atomically returns \exposid{p}. |
6586 | 6586 | \end{itemdescr} |
6587 | 6587 |
|
6588 | 6588 | \indexlibrarymember{operator weak_ptr<T>}{atomic<weak_ptr<T>>}% |
|
6605 | 6605 | \begin{itemdescr} |
6606 | 6606 | \pnum |
6607 | 6607 | \effects |
6608 | | -Atomically replaces \tcode{p} with \tcode{desired} |
6609 | | -as if by \tcode{p.swap(desired)}. |
| 6608 | +Atomically replaces \exposid{p} with \tcode{desired} |
| 6609 | +as if by \tcode{\exposid{p}.swap(desired)}. |
6610 | 6610 | Memory is affected according to the value of \tcode{order}. |
6611 | 6611 | This is an atomic read-modify-write operation\iref{intro.races}. |
6612 | 6612 |
|
6613 | 6613 | \pnum |
6614 | 6614 | \returns |
6615 | | -Atomically returns the value of \tcode{p} immediately before the effects. |
| 6615 | +Atomically returns the value of \exposid{p} immediately before the effects. |
6616 | 6616 | \end{itemdescr} |
6617 | 6617 |
|
6618 | 6618 | \indexlibrarymember{compare_exchange_weak}{atomic<weak_ptr<T>>}% |
|
6633 | 6633 |
|
6634 | 6634 | \pnum |
6635 | 6635 | \effects |
6636 | | -If \tcode{p} is equivalent to \tcode{expected}, |
6637 | | -assigns \tcode{desired} to \tcode{p} and |
| 6636 | +If \exposid{p} is equivalent to \tcode{expected}, |
| 6637 | +assigns \tcode{desired} to \exposid{p} and |
6638 | 6638 | has synchronization semantics corresponding to the value of \tcode{success}, |
6639 | | -otherwise assigns \tcode{p} to \tcode{expected} and |
| 6639 | +otherwise assigns \exposid{p} to \tcode{expected} and |
6640 | 6640 | has synchronization semantics corresponding to the value of \tcode{failure}. |
6641 | 6641 |
|
6642 | 6642 | \pnum |
6643 | 6643 | \returns |
6644 | | -\tcode{true} if \tcode{p} was equivalent to \tcode{expected}, |
| 6644 | +\tcode{true} if \exposid{p} was equivalent to \tcode{expected}, |
6645 | 6645 | \tcode{false} otherwise. |
6646 | 6646 |
|
6647 | 6647 | \pnum |
|
0 commit comments