Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Misc/TypeContainer.h |
Include |
#include "Misc/TypeContainer.h" |
template<class R>
TSharedRef< R, Mode > GetInstanceRef() const
Gets a shared reference to an instance of the specified class.
Unlike GetInstance(), this function will assert if no instance was registered for the requested type of class using either RegisterClass() or RegisterInstance().
Parameter |
Description |
---|---|
R |
The type of class that an instance is being requested for. |
A |
shared pointer to the instance. |