Metodo System::MakeObject

System::MakeObject(Args&&…) method

Crea un oggetto sull’heap e restituisce un puntatore condiviso a esso.

template<class T,class ...> std::enable_if<!IsSmartPtr<T>::value, SmartPtr<T>>::type System::MakeObject(Args &&... args)
ParametroDescrizione
TClasse da istanziare.
ArgomentiTipi degli argomenti del costruttore.
ParametroTipoDescrizione
argomentiArgs&&…Argomenti del costruttore.

ReturnValue

SmartPtr to newly created object, always in shared mode.

Vedi anche

System::MakeObject(Args&&…) method

Crea un oggetto sull’heap e restituisce un puntatore condiviso a esso.

template<class T,class ...> std::enable_if<IsSmartPtr<T>::value, T>::type System::MakeObject(Args &&... args)
ParametroDescrizione
TSmartPtr alla classe da istanziare.
ArgomentiTipi degli argomenti del costruttore.
ParametroTipoDescrizione
argomentiArgs&&…Argomenti del costruttore.

ReturnValue

SmartPtr to newly created object, always in shared mode.

Vedi anche