I’ve found QPointer. Are there any others?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Boost – the
weak_ptrhas some nice features that make it safe to use, if you are also usingshared_ptr. You keep aweak_ptrreference to an instance that is managed byshared_ptrlifetime. When you need to use the underlying instance, convert it to ashared_ptrinstance using the constructor of theshared_ptrclass, or thelockmethod. The operation will fail if the underlying instance was deleted. The use is thread safe in the same fashion as theshared_ptrclass: