retdec
retdec::llvmir2hll::SharableFromThis< ForClass > Class Template Reference

Enables shared_from_this() in the inheriting class. More...

#include <smart_ptr.h>

Inheritance diagram for retdec::llvmir2hll::SharableFromThis< ForClass >:
Inheritance graph
[legend]
Collaboration diagram for retdec::llvmir2hll::SharableFromThis< ForClass >:
Collaboration graph
[legend]

Detailed Description

template<class ForClass>
class retdec::llvmir2hll::SharableFromThis< ForClass >

Enables shared_from_this() in the inheriting class.

By inheriting from this class, shared_from_this() is enabled.

Usage:

class MyClass: public SharableFromThis<MyClass> {
// ...
};

After that, you can call shared_from_this() inside MyClass.

Template Parameters
ForClassClass that inherits from this class template.

The documentation for this class was generated from the following file: