System::Array::IndexOf method
Array::IndexOf(const T&) const method
Determines the index of the first occurrence of the specified item in the array.
virtual int System::Array<T>::IndexOf(const T &item) const override
Parameter | Type | Description |
---|---|---|
item | const T& | Item index of which is to be determined |
ReturnValue
Index of the first occurrence of the specified item if the item is found, otherwise -1
See Also
- Class Array
- Namespace System
- Library Aspose.PDF for C++
Array::IndexOf(const ArrayPtr<ArrayType>&, const ValueType&) method
Determines the index of the first occurrence of specified item in the array.
template<typename ArrayType,typename ValueType> static int System::Array<T>::IndexOf(const ArrayPtr<ArrayType> &arr, const ValueType &value)
Parameter | Description |
---|---|
ArrayType | Type of elements in the target array |
ValueType | type of the item to search for in the array |
Parameter | Type | Description |
---|---|---|
arr | const ArrayPtr<ArrayType>& | Array to search the specified item in |
value | const ValueType& | Item index of which is to be determined |
ReturnValue
Index of the first occurrence specified item if the item is found, otherwise -1
See Also
- Typedef ArrayPtr
- Typedef ValueType
- Class Array
- Namespace System
- Library Aspose.PDF for C++
Array::IndexOf(const ArrayPtr<ArrayType>&, const ValueType&, int) method
Determines the index of the first occurrence of the specified item in the array starting from the specified index.
template<typename ArrayType,typename ValueType> static int System::Array<T>::IndexOf(const ArrayPtr<ArrayType> &arr, const ValueType &value, int startIndex)
Parameter | Description |
---|---|
ArrayType | Type of elements in the target array |
ValueType | type of the item to search for in the array |
Parameter | Type | Description |
---|---|---|
arr | const ArrayPtr<ArrayType>& | Array to search the specified item in |
value | const ValueType& | Item index of which is to be determined |
startIndex | int | Index at which the search is started |
ReturnValue
Index of the first occurrence of the specified item if the item is found, otherwise -1
See Also
- Typedef ArrayPtr
- Typedef ValueType
- Class Array
- Namespace System
- Library Aspose.PDF for C++
Array::IndexOf(const ArrayPtr<ArrayType>&, const ValueType&, int, int) method
Determines the index of the first occurrence of the specified item in a range of items of the array specified by the start index and the number of elements in the range.
template<typename ArrayType,typename ValueType> static int System::Array<T>::IndexOf(const ArrayPtr<ArrayType> &arr, const ValueType &value, int startIndex, int count)
Parameter | Description |
---|---|
ArrayType | Type of elements in the target array |
ValueType | type of the item to search for in the array |
Parameter | Type | Description |
---|---|---|
arr | const ArrayPtr<ArrayType>& | Array to search the specified item in |
value | const ValueType& | Item index of which is to be determined |
startIndex | int | Index at which the search is started |
count | int | Number of elements of the range to search in |
ReturnValue
Index of the first occurrence of the specified item if the item is found, otherwise -1
See Also
- Typedef ArrayPtr
- Typedef ValueType
- Class Array
- Namespace System
- Library Aspose.PDF for C++