File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 3331
3331
then \tcode {remove_cv_t<Y>*} shall be implicitly convertible to \tcode {T*} and
3332
3332
the constructor evaluates the statement:
3333
3333
\begin {codeblock }
3334
- if (p != nullptr && p->weak_this .expired())
3335
- p->weak_this = shared_ptr<remove_cv_t<Y>>(*this, const_cast<remove_cv_t<Y>*>(p));
3334
+ if (p != nullptr && p->@ \exposid {weak-this}@ .expired())
3335
+ p->@ \exposid {weak-this}@ = shared_ptr<remove_cv_t<Y>>(*this, const_cast<remove_cv_t<Y>*>(p));
3336
3336
\end {codeblock }
3337
- The assignment to the \tcode {weak_this } member is not atomic and
3337
+ The assignment to the \exposid {weak-this } member is not atomic and
3338
3338
conflicts with any potentially concurrent access to the same object\iref {intro.multithread }.
3339
3339
3340
3340
\indexlibraryctor {shared_ptr}%
5028
5028
weak_ptr<T const> weak_from_this() const noexcept;
5029
5029
5030
5030
private:
5031
- mutable weak_ptr<T> weak_this ; // \expos
5031
+ mutable weak_ptr<T> @ \exposid {weak-this}@ ; // \expos
5032
5032
};
5033
5033
}
5034
5034
\end {codeblock }
5046
5046
\begin {itemdescr }
5047
5047
\pnum
5048
5048
\effects
5049
- Value-initializes \tcode {weak_this }.
5049
+ Value-initializes \exposid {weak-this }.
5050
5050
\end {itemdescr }
5051
5051
5052
5052
\indexlibrarymember {operator=}{enable_shared_from_this}%
5061
5061
5062
5062
\pnum
5063
5063
\begin {note }
5064
- \tcode {weak_this } is not changed.
5064
+ \exposid {weak-this } is not changed.
5065
5065
\end {note }
5066
5066
\end {itemdescr }
5067
5067
5075
5075
\begin {itemdescr }
5076
5076
\pnum
5077
5077
\returns
5078
- \tcode {shared_ptr<T>(weak_this )}.
5078
+ \tcode {shared_ptr<T>(\exposid {weak-this} )}.
5079
5079
\end {itemdescr }
5080
5080
5081
5081
\indexlibraryglobal {weak_ptr}%
5088
5088
\begin {itemdescr }
5089
5089
\pnum
5090
5090
\returns
5091
- \tcode {weak_this }.
5091
+ \exposid {weak-this }.
5092
5092
\end {itemdescr }
5093
5093
5094
5094
\rSec 2[util.smartptr.hash]{Smart pointer hash support}
You can’t perform that action at this time.
0 commit comments