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())
ParameterTypeDescription
countintInitial size of the array
initconst 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)
ParameterDescription
ValueTypeType of initial value
ParameterTypeDescription
counttypename std::enable_if<std::is_arithmetic<T>::value&&std::is_arithmetic<ValueType>::value&&std::is_convertible<ValueType, T>::value, int>::typeInitial size of the array
initValueTypeThe 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[])
ParameterTypeDescription
countintInitial size of the array
initsconst TValues to fill the array with

See Also

Array::Array(vector_t&&) constructor

Move constructor.

System::Array<T>::Array(vector_t &&value)
ParameterTypeDescription
valuevector_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)
ParameterTypeDescription
assgnconst 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)
ParameterDescription
QThe type of the elements of the std::vector object to copy the elements from
ParameterTypeDescription
valueconst 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)
ParameterDescription
QThe type of the elements of the std::vector object to move the elements from
ParameterTypeDescription
valuestd::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)
ParameterTypeDescription
initstd::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)
ParameterDescription
InitArraySizeNumber of elements of the init array.
ParameterTypeDescription
initconst 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)
ParameterTypeDescription
initstd::initializer_list<bool>Initializer list containing elements to fill the array with

See Also