Метод System::Array::IndexOf
Содержание
[
Скрывать
]Array::IndexOf(const T&) const method
Определяет индекс первого вхождения указанного элемента в массив.
virtual int System::Array<T>::IndexOf(const T &item) const override
| Параметр | Тип | Описание |
|---|---|---|
| элемент | const T& | Индекс элемента, который нужно определить |
ReturnValue
Index of the first occurrence of the specified item if the item is found, otherwise -1
См. также
- Class Array
- Namespace System
- Library Aspose.PDF for C++
Array::IndexOf(const ArrayPtr<ArrayType>&, const ValueType&) method
Определяет индекс первого вхождения указанного элемента в массив.
template<typename ArrayType,typename ValueType> static int System::Array<T>::IndexOf(const ArrayPtr<ArrayType> &arr, const ValueType &value)
| Параметр | Описание |
|---|---|
| ArrayType | Тип элементов в целевом массиве |
| ValueType | Тип элемента для поиска в массиве |
| Параметр | Тип | Описание |
|---|---|---|
| arr | const ArrayPtr<ArrayType>& | Array для поиска указанного элемента в |
| value | const ValueType& | Индекс элемента, который нужно определить |
ReturnValue
Index of the first occurrence specified item if the item is found, otherwise -1
См. также
- Typedef ArrayPtr
- Typedef ValueType
- Class Array
- Namespace System
- Library Aspose.PDF for C++
Array::IndexOf(const ArrayPtr<ArrayType>&, const ValueType&, int) method
Определяет индекс первого вхождения указанного элемента в массив, начиная с указанного индекса.
template<typename ArrayType,typename ValueType> static int System::Array<T>::IndexOf(const ArrayPtr<ArrayType> &arr, const ValueType &value, int startIndex)
| Параметр | Описание |
|---|---|
| ArrayType | Тип элементов в целевом массиве |
| ValueType | Тип элемента для поиска в массиве |
| Параметр | Тип | Описание |
|---|---|---|
| arr | const ArrayPtr<ArrayType>& | Array для поиска указанного элемента в |
| value | const ValueType& | Индекс элемента, который нужно определить |
| startIndex | int | Index с которого начинается поиск |
ReturnValue
Index of the first occurrence of the specified item if the item is found, otherwise -1
См. также
- Typedef ArrayPtr
- Typedef ValueType
- Class Array
- Namespace System
- Library Aspose.PDF for C++
Array::IndexOf(const ArrayPtr<ArrayType>&, const ValueType&, int, int) method
Определяет индекс первого вхождения указанного элемента в диапазоне элементов массива, заданном стартовым индексом и количеством элементов в диапазоне.
template<typename ArrayType,typename ValueType> static int System::Array<T>::IndexOf(const ArrayPtr<ArrayType> &arr, const ValueType &value, int startIndex, int count)
| Параметр | Описание |
|---|---|
| ArrayType | Тип элементов в целевом массиве |
| ValueType | Тип элемента для поиска в массиве |
| Параметр | Тип | Описание |
|---|---|---|
| arr | const ArrayPtr<ArrayType>& | Array для поиска указанного элемента в |
| value | const ValueType& | Индекс элемента, который нужно определить |
| startIndex | int | Index с которого начинается поиск |
| count | int | Количество элементов диапазона для поиска |
ReturnValue
Index of the first occurrence of the specified item if the item is found, otherwise -1
См. также
- Typedef ArrayPtr
- Typedef ValueType
- Class Array
- Namespace System
- Library Aspose.PDF for C++