Leap

Computer Science. Technology. Impression

Store weak pointer to self

Was going through https://itecnote.com/tecnote/c-store-weak-pointer-to-self/ and then came to know that we can have a weak pointer to self. This technique can be used to make sure everyone is using the same object, kind of like a singleton.