System::MakeObject método

System::MakeObject(Args&&…) method

Crea un objeto en el heap y devuelve un puntero compartido a él.

template<class T,class ...> std::enable_if<!IsSmartPtr<T>::value, SmartPtr<T>>::type System::MakeObject(Args &&... args)
ParámetroDescripción
TClase para instanciar.
ArgsTipos de los argumentos del constructor.
ParámetroTipoDescripción
argsArgs&&…Argumentos del constructor.

ReturnValue

SmartPtr to newly created object, always in shared mode.

Ver también

System::MakeObject(Args&&…) method

Crea un objeto en el heap y devuelve un puntero compartido a él.

template<class T,class ...> std::enable_if<IsSmartPtr<T>::value, T>::type System::MakeObject(Args &&... args)
ParámetroDescripción
TSmartPtr a la clase para instanciar.
ArgsTipos de los argumentos del constructor.
ParámetroTipoDescripción
argsArgs&&…Argumentos del constructor.

ReturnValue

SmartPtr to newly created object, always in shared mode.

Ver también