System::BuildObject method

System::BuildObject method

Build an object with shared ownership.

template<typename T,typename...> Details::ObjectBuilder<T, SharedPtr<T>> System::BuildObject(Args &&... args)
ParameterDescription
TType of object to build
ArgsArgument types for object construction
ParameterTypeDescription
argsArgs&&…Arguments to forward to object constructor

ReturnValue

ObjectBuilder configured for shared pointer construction

Remarks

Creates a SharedPtr and returns a builder for it Object construction must be finished with Get() call

See Also