System::MakeArray method

System::MakeArray(Args&&…) method

A factory function that constructs a new Array object passing the specified arguments to its constructor.

template<class T,class...> ArrayPtr<T> System::MakeArray(Args &&... args)
ParameterDescription
TThe type of elements of the Array object the function constructs
ParameterTypeDescription
argsArgs&&…The arguments that are passed to the constructor of the Array object being constructed

ReturnValue

A smart pointer pointing to the constructed Array object

See Also

System::MakeArray(Integral, Args&&…) method

A factory function that constructs a new Array object passing the specified arguments to its constructor.

template<class T,class Integral,class...> std::enable_if<std::is_integral<Integral>::value, ArrayPtr<T>>::type System::MakeArray(Integral size, Args &&... args)
ParameterDescription
TThe type of elements of the Array object the function constructs
IntegralType of array size.
ParameterTypeDescription
sizeIntegralSize of the array being created.
argsArgs&&…The arguments that are passed to the constructor of the Array object being constructed

ReturnValue

A smart pointer pointing to the constructed Array object

See Also

System::MakeArray(std::initializer_list<T>) method

A factory function that constructs a new Array object, fills it with the elements from the specified initialization list and returns a smart pointer pointing to the Array object.

template<typename T> ArrayPtr<T> System::MakeArray(std::initializer_list<T> init)
ParameterDescription
TThe type of elements of the Array object the function constructs
ParameterTypeDescription
initstd::initializer_list<T>The initialization list containing the elements to fill the array with

ReturnValue

A smart pointer pointing to the constructed Array object

See Also