Array()

Array::Array() constructor

Constructs an empty array.

System::Array<T>::Array()

Array::Array(int, const T&) constructor

Filling constructor.

System::Array<T>::Array(int count, const T &init=T())

Arguments

ParameterTypeDescription
countintInitial size of the array
initconst T&The initial value used to fill the array with

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)

Template parameters

ParameterDescription
ValueTypeType of initial value

Arguments

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

Array::Array(int, const T) constructor

Filling constructor.

System::Array<T>::Array(int count, const T inits[])

Arguments

ParameterTypeDescription
countintInitial size of the array
initsconst TValues to fill the array with

Array::Array(vector_t&&) constructor

Move constructor.

System::Array<T>::Array(vector_t &&value)

Arguments

ParameterTypeDescription
valuevector_t&&std::vector, elements of which are acquired by the array

Array::Array(const vector_t&) constructor

Copy constructor.

System::Array<T>::Array(const vector_t &assgn)

Arguments

ParameterTypeDescription
assgnconst vector_t&std::vector to copy values from

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)

Template parameters

ParameterDescription
QThe type of the elements of the std::vector object to copy the elements from

Arguments

ParameterTypeDescription
valueconst std::vector<Q>&std::vector to copy the values from

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)

Template parameters

ParameterDescription
QThe type of the elements of the std::vector object to move the elements from

Arguments

ParameterTypeDescription
valuestd::vector<Q>&&std::vector to copy the values from

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)

Arguments

ParameterTypeDescription
initstd::initializer_list<UnderlyingType>Initializer list containing elements to fill the array with

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)

Template parameters

ParameterDescription
InitArraySizeNumber of elements of the init array.

Arguments

ParameterTypeDescription
initconst std::array<UnderlyingType, InitArraySize>&Array to copy into the array being constructed.

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)

Arguments

ParameterTypeDescription
initstd::initializer_list<bool>Initializer list containing elements to fill the array with

See Also