System::Array::Array constructor
Array::Array() constructor
Constructs an empty array.
System::Array<T>::Array()
See Also
Array::Array(int, const T&) constructor
Filling constructor.
System::Array<T>::Array(int count, const T &init=T())
Parameter | Type | Description |
---|
count | int | Initial size of the array |
init | const T& | The initial value used to fill the array with |
See Also
Array::Array(typename std::enable_if<std::is_arithmetic<T>::value&&std::is_arithmetic<ValueType>::value&&std::is_convertible<ValueType, T>::value, int>::type, ValueType) constructor
Filling constructor.
template<typename ValueType> System::Array<T>::Array(typename std::enable_if<std::is_arithmetic<T>::value &&std::is_arithmetic<ValueType>::value &&std::is_convertible<ValueType, T>::value, int>::type count, ValueType init)
Parameter | Description |
---|
ValueType | Type of initial value |
Parameter | Type | Description |
---|
count | typename std::enable_if<std::is_arithmetic<T>::value&&std::is_arithmetic<ValueType>::value&&std::is_convertible<ValueType, T>::value, int>::type | Initial size of the array |
init | ValueType | The initial value used to fill the array with |
See Also
Array::Array(int, const T) constructor
Filling constructor.
System::Array<T>::Array(int count, const T inits[])
Parameter | Type | Description |
---|
count | int | Initial size of the array |
inits | const T | Values to fill the array with |
See Also
Array::Array(vector_t&&) constructor
Move constructor.
System::Array<T>::Array(vector_t &&value)
Parameter | Type | Description |
---|
value | vector_t&& | std::vector, elements of which are acquired by the array |
See Also
Array::Array(const vector_t&) constructor
Copy constructor.
System::Array<T>::Array(const vector_t &assgn)
Parameter | Type | Description |
---|
assgn | const vector_t& | std::vector to copy values from |
See Also
Array::Array(const std::vector<Q>&) constructor
Constructs an Array object and fills it with values copied from an std::vector object whose values’ type is the same as T but different from UnderlyingType.
template<typename Q,typename> System::Array<T>::Array(const std::vector<Q> &value)
Parameter | Description |
---|
Q | The type of the elements of the std::vector object to copy the elements from |
Parameter | Type | Description |
---|
value | const std::vector<Q>& | std::vector to copy the values from |
See Also
Array::Array(std::vector<Q>&&) constructor
Constructs an Array object and fills it with values moved from an std::vector object whose values’ type is the same as T but different from UnderlyingType.
template<typename Q,typename> System::Array<T>::Array(std::vector<Q> &&value)
Parameter | Description |
---|
Q | The type of the elements of the std::vector object to move the elements from |
Parameter | Type | Description |
---|
value | std::vector<Q>&& | std::vector to copy the values from |
See Also
Array::Array(std::initializer_list<UnderlyingType>) constructor
Constructs an Array object and fills it with values from the specified initializer list containing elements of UnderlyingType type.
System::Array<T>::Array(std::initializer_list<UnderlyingType> init)
Parameter | Type | Description |
---|
init | std::initializer_list<UnderlyingType> | Initializer list containing elements to fill the array with |
See Also
Array::Array(const std::array<UnderlyingType, InitArraySize>&) constructor
Constructs an Array object and fills it with values from the specified array containing elements of UnderlyingType type.
template<std::size_t> System::Array<T>::Array(const std::array<UnderlyingType, InitArraySize> &init)
Parameter | Description |
---|
InitArraySize | Number of elements of the init array. |
Parameter | Type | Description |
---|
init | const std::array<UnderlyingType, InitArraySize>& | Array to copy into the array being constructed. |
See Also
Array::Array(std::initializer_list<bool>, int) constructor
Constructs an Array object and fills it with values from the specified initializer list containing elements of bool type.
System::Array<T>::Array(std::initializer_list<bool> init, int=0)
Parameter | Type | Description |
---|
init | std::initializer_list<bool> | Initializer list containing elements to fill the array with |
See Also