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