System::MakeArray method
Contents
[
Hide
]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)
Parameter | Description |
---|---|
T | The type of elements of the Array object the function constructs |
Parameter | Type | Description |
---|---|---|
init | std::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
- Typedef ArrayPtr
- Namespace System
- Library Aspose.PUB for C++
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)
Parameter | Description |
---|---|
T | The type of elements of the Array object the function constructs |
Parameter | Type | Description |
---|---|---|
args | Args&&… | 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
- Typedef ArrayPtr
- Namespace System
- Library Aspose.PUB for C++
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)
Parameter | Description |
---|---|
T | The type of elements of the Array object the function constructs |
Integral | Type of array size. |
Parameter | Type | Description |
---|---|---|
size | Integral | Size of the array being created. |
args | Args&&… | 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
- Typedef ArrayPtr
- Namespace System
- Library Aspose.PUB for C++