System::Array::Reverse method

Array::Reverse(const ArrayPtr<Type>&) method

反转指定数组中的元素。

template<typename Type> static void System::Array<T>::Reverse(const ArrayPtr<Type> &arr)
参数类型描述
arrconst ArrayPtr<Type>&目标数组

另见

Array::Reverse(const ArrayPtr<Type>&, int, int) method

反转指定数组中一段范围的元素。

template<typename Type> static void System::Array<T>::Reverse(const ArrayPtr<Type> &arr, int startIndex, int count)
参数类型描述
arrconst ArrayPtr<Type>&目标数组
startIndexint数组中反转范围开始的索引
countint要反转的范围大小

另见